In the above Link Sample Test Case Output is Coming but Solution not Accepted.
In the above Link, Both Pre-Order & In-Order are Giving Same Output.
Q1. Why Link 1 Code isn’t Accepted?
Q2. Why Link 2 Code Showing Same Output for Pre & In Order Traversals?
