Domanda di colloquio di Longview Solutions

How to solve algorithm structure in the interview.