Pregunta de entrevista de Cognizant

Sorting in both orders and reverse number code in c language