Compassus Interview Question

straight forward