Accenture interview question

dsa based question dsa based question