DXC Technology Interview Question

aptitude question and c