DXC Technology Interview Question

Programming language question