Deloitte interview question

They asked puzzle in technical interview