Algolia interview question

- How to work with a difficult team member - Solve this algorithm