This is a shit question with wrong test cases.
Don’t waste your time on this.
What a stupid question
atul007ism
#2
If you guys have any doubt about testcases or soln check this out…it will surely help you guys.