RedMane Technology interview question

Heap and stack.