Pocket Gems Interview Question

Friend circles traverse binary tree preorder