Explain Naive String Matching Algorithm. Discuss Its Time And Space Complexity