Ammann/Offutt Exercises 5.5 (pages 208-210). Do either Exercise 5 or Exercise 7.
The first exercise is a paper and pencil exercise. The second is a small programming exercise.