Infosys Interview Question

basics of c and java