Could you tell me why my code is not suitable?

package com.codegym.task.task02.task0217;
/*
Minimum of four numbers
*/
public class Solution {
public static int min(int a, int b, int c, int d) {
//write your code here
int superMinimal = 0;
int minimal = Math.min(c, d);
int minimal2 = Math.min(a,b);
if (minimal > minimal2)
superMinimal = minimal2;
else superMinimal = minimal;
return superMinimal;
}
public static int min(int a, int b) {
//write your code here
int minimal = Math.min(a,b);
return minimal;
}
public static void main(String[] args) throws Exception {
System.out.println(min(-20, -10));
System.out.println(min(-20, -10, -30, -40));
System.out.println(min(-20, -10, -30, 40));
System.out.println(min(-40, -10, -30, 40));
}
}