I was trying to solve this problem
however I was unable to understand the editorial to this problem.
Can someone please explain how to solve this problem using examples if possible ?
I am still unable to understand the sample output itself and what the question is asking exactly.
Thank you in advance :D :D