Uber interview question

Parsing incoming data in Cpp