Honeywell Interview Question

just the practice coding question on hackerrank