Robinhood Interview Question

String manipulation