Resolver interview question

Tech challenge: manipulating with a string