Group employees by shared interests | Palantir Interview Question