sam and substrings hackerrank solution

join shbcf.ru