Почему не засчитывает последние 2 пункта? хотя выводит все правильно
package com.javarush.task.pro.task05.task0505;
import java.util.Scanner;
/*
Reverse
*/
public class Solution {
public static void main(String[] args) {
//напишите тут ваш код
int N;
int[]array;
Scanner scan = new Scanner(System.in);
System.out.println("Введите целое число");
N = scan.nextInt();
array=new int[N];
if(N>0){
for(int i=0;i<N;i++){
array[i]=scan.nextInt();
}
}
if(N%2!=0){
for(int j=0;j<N;j++){
System.out.println(array[j]);
}
}else {
for(int j=N-1;j>=0;j--){
System.out.println(array[j]);
}
}
}
}