Quora, Inc. interview question

Debug C++ code in the practical round