How To Find Time And Space Complexity