Question d’entretien chez Xero

In technical interview there was question related to data structure