added the right complexity for exercise 2 bruteforce alg