Whenever you're ready, walk me through how you'd approach this.
Describe the difference between stack and heap memory and discuss typical use cases and pitfalls in managing them.