Amazon interview question

Find the next largest number.