Unable to understand the question

How the sample input-output is working for the question?

Hi
you can refer the following video by prateek bhaiya