Count users over n connections | Coinbase Interview Question