Driver Code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT S = " abcabcabc " ; NEW_LINE Q = [ [ 0 , 3 , ' a ' ] , [ 0 , 2 , ' b ' ] , [ 2 , 4 , ' z ' ] ] NEW_LINE firstOccurence ( S , Q ) NEW_LINE DEDENT