added hackerrank_Sam_And_Substrings.py under dynamic programming