Ficstar Software interview question

Combinatorics question on mailboxes.