Lyft interview question

Code test in React, more difficult than most React hackerrank tests