Design a waitlist system with top/bottom K | Google Interview Question