Bluevine interview question

Please implement the range function