Q2 Software interview question

Explain solving time and space complexity for an algorithm Describe x y and z design patterns