Hexaware Technologies Interview Question

Basic c program to write