Explain The Time And Space Complexity