Infosys interview question

write a program for sort and find the largest value in the list