DXC Technology interview question

UDD Assumptions