On Stack Exchange: https://bit.ly/2GVc8z2 And the first comment to the most upvoted answer: > Classic off-by-one error. It doesn't happen to just programmers. Made me smile :)