I came up with the following implementation of strstr in python using a set. What is its time and space complexity?
"""strstr(). Given two str