Exercise: Iterator Method Chaining
In this exercise, you will need to find and use some of the provided methods in
the Iterator
trait to implement a complex calculation.
Copy the following code to https://play.rust-lang.org/ and make the tests
pass. Use an iterator expression and collect
the result to construct the
return value.