Hexaware Technologies Interview Question

One coding question based on loops, input output and conditional statements.