Next Greater Element Using Stackcp