Copyright © University of Cambridge. All rights reserved.
Well done to Philip from Wilson's School who submitted this solution.