Sony interview question

print a alternative array elements in revers order