Code not compiling for CHN15A, what is wrong with my solution working finein my IDE

Compilation Error:

Main.java:6: error: class MutatedMinions is public, should be declared in a file named MutatedMinions.java
public class MutatedMinions {
^
1 error

My Solution is pasted bellow

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;

public class MutatedMinions {

public static void main(String[] args) throws NumberFormatException, IOException {
	// TODO Auto-generated method stub
	BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
	for(int i=0; i < Integer.parseInt(input.readLine());i++) {
		String inputArr[] = input.readLine().split(" ");
		String inputArr2[] = input.readLine().split(" ");
		int mutant = Integer.parseInt(inputArr[1]);
		int count = 0;
		for(int j = 0;j < Integer.parseInt(inputArr[0]); j++) {
			if((Integer.parseInt(inputArr2[j])*mutant)%7 == 0) {
				count++;
			}
			
		}
		System.out.println(count);
	}

}

}

Got Solution from here.