Uber interview question

It was a OA Codesignal.