The four-colour problem was one of the most famous and controversial conundrums ever known, and stumped thousands of puzzlers for over a century.