publicclassBreakContinue{publicstaticvoidwindowPosSum(int[] a,int n){/** your code here */for(int i=0;i<a.length;i++){if(a[i]<0)continue;for(int j=i+1;j<=i+n;j++){if(j>=a.length)break;
a[i]+=a[j];}}}publicstaticvoidmain(String[] args){int[] a ={1,2,-3,4,5,4};int n =3;windowPosSum(a, n);// Should print 4, 8, -3, 13, 9, 4System.out.println(java.util.Arrays.toString(a));}}