Resolver Interview Question

Tech challenge: manipulating with a string