Bluevine interview question

Implement "range" function with same behavior as in python