Pregunta de entrevista de Uber

String manipulation, recursive, complex calculations