Yelp Interview Question

A game problem that involves some permutation and combination. Kinda like some leet code problem combined together.