DXC Technology Interview Question

basics of java and c