Honeywell interview question

related to oop and sql