For this Question: <p>Let us define the FizzBuzz sequence a<sub>1</sub>, a<sub>2</sub>,. . as follows:</p>
<ul>
 <li>If both 3 and 5 divide i, a<sub>i</sub> = FizzBuzz. </li>
 <li>If the above does not hold but 3 divides i, a<sub>i</sub> = Fizz. </li>
 <li>If none of the above holds but 5 divides i, a<sub>i</sub> = Buzz. </li>
 <li>If none of the above holds, a<sub>i</sub> = i. </li>
</ul>
<p>Write a program to find the sum of all numbers among the first N terms of the FizzBuzz sequence. </p><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>solve()</b> that takes an integer N as parameter.

<b>Constraints</b>
1<=N<=10<sup>6</sup>Return one integer - the sum of the numbers in FizzBuzz sequence.Sample Input:
15

Sample Output:
60

The first 15 terms of the sequence are 1, 2, Fizz, 4, Buzz, Fizz, 7, 8, Fizz, Buzz, 11, Fizz, 13, 14, FizzBuzz. So, their sum is 60., I have written this Solution Code: 
class Solution {
    public long solve(int N) {
        long sum = 0;
        for(int i = 1; i <= N; i++) {
            if(i%3!=0 && i%5!=0) 
                sum+=i;
        }
        return sum;
    }
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?