Capgemini interview question

find next biggest number from array.