Adobe Interview Question

Q1. Write a code to find cousins of a given node in a tree.