Whenever you're ready, walk me through how you'd approach this.
Explain the difference between stack and heap memory allocation in embedded applications, and why dynamic memory allocation is often avoided in safety-critical systems.