How to approach the Help Ramu question?

https://online.codingblocks.com/player/3708/content/790?s=384

How to approach this question?