Fortinet Interview Question

How to detect an overflow in addition