Domanda di colloquio di Safaricom

A question on data structures and algorithms