Google interview question

islands in a binary tree