Uber Interview Question

it is a java coding question, i forget details