Infosys Interview Question

Find the next greater number