Sheet2; Exercise 3.a running time