IBM interview question

Simple array type leet code questions