This program is the game bingo. It runs in O(N).