As reported: Epic Systems online assessment, 2026 — one of four programming questions: a Bingo-style game called Mingo on a 100 × 100 board.
You are given an n × n board of distinct integers and an array called of numbers announced in order. Process the calls from left to right. A Mingo happens when every value in any of these lines has been called:
- a full row,
- a full column,
- the main diagonal (top-left to bottom-right).
Return [mingoOccurred, numberOfCalls]: [true, k] where k is the number of calls processed when the first Mingo happens, or [false, 0] if no Mingo happens after all calls. A called number that is not on the board, or that was already called, changes nothing (but still counts as a call).
Example 1
board = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
called = [1, 5, 2, 9]
Output: [true, 4]
After the 4th call (9), the main diagonal 1, 5, 9 is complete.
Example 2
board = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
called = [4, 1, 7]
Output: [true, 3]
The first column 1, 4, 7 completes on the 3rd call.
Example 3
board = [[1, 2, 3],
[4, 5, 6],
[7, 8, 9]]
called = [3, 5, 7, 1, 2]
Output: [true, 5]
3, 5, 7 is the anti-diagonal, which does not count; the top row 1, 2, 3 completes on the 5th call.
Constraints: 1 <= n <= 100; board values are distinct, 1 <= board[i][j] <= 10^6; 0 <= called.length <= 10^4; 1 <= called[i] <= 10^6.
Code runner format: two JSON values, one per line: board, then called. Implement mingo(board, called). Return a two-element list in Python and JavaScript, an Object[] {Boolean, Integer} in Java, a pair<bool, int> in C++, and (bool, int) in Go. The runner prints it as [true,4].