Set 1 

Hello, please check my results .
Ex 1 should be O(n), 
Ex 2 O(n^2)
Ex 3 O(n^3).

Thank you.
Best.
Cristina
You shouldn't have the puts statement here. It should only be:
max
so that you return the value and not just print it.