Pregunta de entrevista de Uber

Basic coding questions nothing much difficult