Compassus interview question

straight forward