Exercise: iterators - reimplement the range function


In one of the first slides of this chapter we saw a partial implementation of the range function. Change that code to have a full implementation, that can accept 1, 2, or 3 parameters.