結果 : find next greater element using stack