Design query pagination for large datasets | Coinbase Interview Question