Bloomberg Interview Question

coding : about OOP and HashMap and Pair