IBM Interview Question

Simple array type leet code questions