Bluevine Interview Question

Please implement the range function