Answer coming wrong

Whys is it shownig NO for thwe given test case?


Here id the code.

You have declared s and k both in main and global.