IBM Interview Question

Basic coding and arrays. Some dsa