Pergunta de entrevista da empresa Salesforce

Implement on the whiteboard a solution to a basic combinatorics-related algorithm question.