Simple questions

3 sum and same tree