This was always my go to interview question when I wanted to smugly prove to someone I’m smarter than them because I knew in fact they were smarter than me and I was feeling insecure. Good to see others use overflow gotchas too.
This type of issue is pretty common to encounter and I make at least a few fixes a year specifically addressing integer overflow across many companies