結果 : explain space complexity of an algorithm with example