Accenture interview question

mostly it was all coding. Annotations