Pergunta de entrevista da empresa Cognizant

Sorting in both orders and reverse number code in c language