DXC Technology interview question

Sorting technique s