Solution to the xkcd restaurant menu challenge