Meta Interview Question

How to find the next greatest number