結果 : longest subarray hackerrank solution javascript