Microsoft Interview Question

Find all the next greater numbers.