Pregunta de entrevista de Uber

extremely simple coding question asked by junior developer