Quantiphi interview question

puzzles