Update Next Greater Number