Honeywell interview question

just the practice coding question on hackerrank