InterviewBit Problems   Max Depth of Binary Tree : Unsolved

About the Max Depth of Binary Tree : Unsolved category (1)
Simple Solution - C++ using recursion (1)
Don't bother solving in JS, it give a penalty for Time limit exceeded (3)
Getting the correct output, but still when I test it , giving that the output is wrong (2)
Run as custom input showing correct (ans:7) while submit giving wrong answer(8) (2)
Different answer on run as custom input and submit (2)
Edges or Nodes? (2)
Why my solution shows time limit exceeded (1)
How to print Tree Object (1)