Need help in combinatorics problem

How to approach this problem? Thanks.