What is complexity of following code?

```
public static int foo(int[] a){
int[] b = new int[a.length];
for(int i = 0; i < a.length; ++i){
for(int j = 0; j < b.length / 100; ++j ){
b[i] += a[i] + a[j];
}
}
int result = 0;
for(int i = 0; i < b.length; i++ ){
result += b[i];
}
return result;
}
```

I think it will be:

So overall complexity is

`~O(n^2)`