Valeo Interview Question

how can detect stack overflow