Infosys Interview Question

They asked about sorting in C++