Add exercise for `reduce`