Ugam interview question

coding questions related to sorting numbers