Uber interview question

They asked graph problem in the first coding interview.