Solving LinkedIn Queens Game