What is the worst case running time in Big-Oh notation for the function below?Can someone please explain why? Thanks.
test{
int counter = 0;
for int(i=0; i<5000;++i){
counter += i;
for(j=0;j<n;++j){
...
}
for(k=0;k<i;++k){
...
}
}
}