結果 : find shortest substring hackerrank solution