ENuke Software Interview Question

logical question over array without using array functions