For this Question: Given an integer X, your task is to return the minimum number whose number of factors is equal to X.<b>User Task:</b>
Since this will be a functional problem, you don't have to take input. You just have to complete the function <b>MakeTheNumber()</b> that takes the integer X as parameter.

<b>Constraints:</b>
1 <= X <= 15Return the minimum integer whose number of factors is equal to X.Sample Input:-
3

Sample Output:-
4

Sample Input:-
5

Sample Output:-
16, I have written this Solution Code: public static  int MakeTheNumber(int n){
   for(int x=1;x<=10000;x++){
int cnt=0;
for(int i=1;i<=x;i++){
    if(x%i==0){cnt++;}
}
if(cnt==n){
return x;}
}

return -1;
}

, In this Programming Language: Java, Now tell me if this Code is compilable or not?