Bloomberg Interview Question

define a class