Lyft Interview Question

It was a Coding challenge