Help me in solving PCJ18B problem

My issue

can anyone explain me what exactly this question want to say, please

My code

#include <iostream>
using namespace std;

int main() {
	int t;
	cin>>t;
	while (t--){
	    int n;
	    cin>>n;
	    int sum=0;
	    while (n>0){
	        sum=sum+n*n;
	        n=n-2;
	    }
	    cout<<sum<<endl;
	}
	return 0;
}

Problem Link: Chef and Bored Games Practice Coding Problem - CodeChef

@tanmaydwivedi2
the question asks for the number of square u can make using that chess board that have odd length.
plzz refer my c++ code for better understanding

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--)
	{
	    int n;
	    cin>>n;
	    int ans=0;
	    for(int i=0;i<n;i+=2)
	    {
	        ans+=((n-i)*(n-i));
	    }
	    cout<<ans<<endl;
	}
	return 0;
}