Bluevine interview question

implement a range in python