How to save space complexity?

Last updated