Gemalto Interview Question

Data structure + opps concept