Lyft interview question

It was a Coding challenge