Third Bridge interview question

Problem with a team mate- how did you solve?