I want to solve that question but I am not sure if I am right or not. I found O(n^2-n)=O(n^2)
double fact(long i) { if (i==1 || i==0) return i; else return i*