Pregunta de entrevista de Uber

string and array manipulation, data structres and algorithm