first solution to p21