chap02: ex01: Add exercise with nested loops.