DXC Technology interview question

They asked scenario based question