Whenever you're ready, walk me through how you'd approach this.
Describe the difference between stack and heap memory and how they impact performance and memory management.