Pergunta de entrevista da empresa Exprivia

One of the question was about overflow/underflow problem