Amdocs interview question

sort a array in C.