結果 : shortest substring hackerrank solution java