https://practice.geeksforgeeks.org/problems/leaf-at-same-level/1