Driver code
if __name__ == ' _ _ main _ _ ' : NEW_LINE INDENT hm = { } NEW_LINE preIndex = 0 NEW_LINE inn = [ 4 , 2 , 5 , 1 , 3 , 6 ] NEW_LINE pre = [ 1 , 2 , 4 , 5 , 3 , 6 ] NEW_LINE n = len ( pre ) NEW_LINE printPostMain ( inn , pre , n ) NEW_LINE DEDENT