Implement a consistent hashing ring | DoorDash Coding Question