DXC Technology interview question

Basics of c,java