Deloitte Interview Question

They asked puzzle in technical interview