結果 : check if array is sorted using recursion in java