Honeywell interview question

hacker rank ML coding round