Microsoft interview question

Neighbour in a tree, pythogorian triplets in an array