DXC Technology interview question

aptitude question and c