Determine whether the given binary tree nodes are cousins of each other
Given a binary tree, determine if two given nodes are cousins of each other or not. Two nodes of a binary tree are cousins of each other only if they have different parents, but they have the same level.