Honeywell interview question

Hands on Coding for given problem statement