Test case 1 doubt

Help in the test case 2