Increff interview question

trees graphs puzzle oops concepts