Pergunta de entrevista da empresa Emma (UK)

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