Implement Composable Range Iterators | Coinbase Interview Question