For this Question: You are given an equation:
T<sub>n</sub> = 2*n + (n + 1)<sup>2</sup> - (n<sup>2</sup> + 4)

Your task is to find S<sub>n</sub>:
S<sub>n</sub> = T<sub>1</sub> + T<sub>2</sub> + T<sub>3</sub> +. .. . + T<sub>n</sub>User task:
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^4You need to return the sum.Sample Input:-
2

Sample Output:-
6

Explanation:- 
T1 = 2*1 + (1+1)^2  - (1^2+4)
      =  2 + 4 - 5
      =  1
T2 = 2*2 + (2 + 1)^2 - (2^2 + 4)
      = 4 + 9 - 8
      = 5
S2 = T1 + T2
S2 = 6

Sample Input:-
3

Sample Output:-
15, I have written this Solution Code: def equationSum(N) : 
    
    re=2*N*(N+1)
    re=re-3*N
    return re, In this Programming Language: Python, Now tell me if this Code is compilable or not?