Droidshift interview question

Sort an array, check if a number is Armstrong number