Next Greater Element Using Stack In Python