I tried my best to understand this question TREEMX, but couldn’t get it what is exactly asked in this question.
Solving it is a completely different thing.
When I’m writing this post, total submissions done on this questions were 9, with an accuracy of 11%, which translates to only 1 person that I suspect was done the author himself.
Any help and walk over the example input / output would be helpful.
Thanking in advance.