Pregunta de entrevista de Indian Statistical Institute

Question on combinatorics.