Pregunta de entrevista de Ficstar Software

Combinatorics question on mailboxes.