Help me in solving SUBSTRING problem

My issue

I can’t understand the language of problem
Problem Link: SUBSTRING Problem - CodeChef