128 Technology interview question

Simple array program