Rishabh interview question

Ways to quit a loop How will you read a substring backwards