Uber Interview Question

extremely simple coding question asked by junior developer