Exprivia Interview Question

One of the question was about overflow/underflow problem