Accenture interview question

Question was based on DDIC