Ficstar Software Interview Question

Combinatorics question on mailboxes.