DXC Technology interview question

basics of java and c