In the Solidity version 0.6.0, when the function call attempts to increment the value of maxNumber by 1. Since the max number has an upper limit of 255 (uint8), when this value exceeds 255 and wraps around, a condition known as integer overflow occurs, and it will return 0.