For this Question: Given a number N, find the value of the below equation for the given number.
Equation: -

N
∑        {(X + 1)<sup>2</sup> - (3X + 1) + X}
X = 1<b>User task:</b>
Since this is a functional problem, you don’t have to worry about the input, you just have to complete the function <b>equationSum()</b>, where you will get N as a parameter.

<b>Constraints:</b>
1 <= N <= 10^5You need to return the sum of the equationSample Input:-
1

Sample Output:-
1

Sample Input:-
2

Sample Output:-
5

Explanation:-
For test 2:- (1+1)^2 - (3*1+1) + (1) + (2+1)^2 - (3*2+1) +2
 = 4 - 4 +1 + 9 -7 +2
 = 5, I have written this Solution Code:  long long int equationSum(long long N){

 long long ans = (N*(N+1)*(2*N+1))/6;
 return ans;
 }, In this Programming Language: C, Now tell me if this Code is compilable or not?