Question d’entretien chez Lyft

remove the given C++ code bugs and warnings, solve some algorithm problems.