Pergunta de entrevista da empresa JLR

What is stack overflow and why it happens?