Valeo interview question

how can detect stack overflow