Flipkart interview question

Binary Tree in kotlin 2 adhoc problems in javascript