Accenture Interview Question

Q1. Simple Array based Q