Help me in solving PRACTICEPERF problem

My issue

My code

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Codechef
{
    public static int problemfun(int[]arr){
    int count=0;
     for (int i=0;i<=n ;i++ ){
	      int problem=10;
	      if(arr[i]>problem){
	          count++;
	          
	      }
	      return count;
	public static void main (String[] args){
	 scanner scn =new scanner(System.in);
	 int n=scn.nextint();
	 int[]arr=new int[n];
	 for(int i=0;i<=n;i++){
	     arr[i]=scn.nextInt();
	 }
	}
 }

Problem Link: PRACTICEPERF Problem - CodeChef

if(arr[i]>problem){
count++;
Here the condition should be:-
arr[i]>=problem, because chef has to do at least 10 problems each week.
And in main function, you haven’t invoked the “problemfun” function.