Hexaware Technologies Interview Question

Asked to write c programming