Pergunta de entrevista da empresa NTT DATA

How to perform selective sort in C?