Substring hackerrank solution python. end() HackerRank Solution in Python.