Sam and substrings Discussions | Algorithms | HackerRank