Quantiphi interview question

asked a puzzle