Almug interview question

Q: Given two binary tree check leaf node qual or not. Q: Given to binary tree check leaf of parent node equal or not/