Lyft Interview Question

TO Solve a coding question