Question d’entretien chez Longview Solutions

How to solve algorithm structure in the interview.