I wanted to know if i can see the solution after successfully solving the question to see a more optimized approach.
Can I see a solution after solving question
Hey @amoghjalan2005, I would recommend you to solve the question yourself first. Once you are able to pass all the test cases, then I’ll help you with the solution ! This would help you learn the concept in the best possible way 
I hope this helps !
All the best !
Happy Coding 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.