Emma (UK) Interview Question

Leetcode-style prisoner cells problem + generic array pointer problem.