Nested intervals/Arithmetic and geometric mean/Exercise