Honeywell interview question

Based on college project and oops concept