結果 : find next greater element in array using stack