Explain the concept of recursion and how it relates to the stack data structure.
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Asks what recursion is and how it relates to the stack data structure. Tests understanding of call stack frames, last-in, first-out unwinding, recursion depth as a space cost, stack overflow, and rewriting recursion with an explicit stack.