Domanda di colloquio di Xero

In technical interview there was question related to data structure