EarthCam interview question

sort algorithms and debugging c++ code.