Problem in understanding question and cases

i am unable to understand how to create these cases

cases given in input format

hi rashmi
you can refer the video provided by prateek bhaiya