Increff Interview Question

trees graphs puzzle oops concepts