Driver Code
if __name__ == " _ _ main _ _ " : NEW_LINE INDENT arr = [ " abc " , " abcabc " , " abc " ] NEW_LINE n = len ( arr ) NEW_LINE L = 1 NEW_LINE R = 3 NEW_LINE string = " abc " NEW_LINE print ( numOccurences ( arr , n , string , L , R ) ) NEW_LINE DEDENT