Formlabs interview question

Explain how you would debug a memory leak in C. How do interrupts work in embedded systems? Walk me through a project where you worked with hardware and software integration.