Pregunta de entrevista de Uber

it is a java coding question, i forget details