Deloitte Interview Question

Basic coding questions from arrays