ENuke Software interview question

logical question over array without using array functions