NTT DATA Interview Question

How to perform selective sort in C?