Finished complexity for problem 1.
Finalized solution 1.