Infosys Interview Question

programming java and c and question in java