eBay Interview Question

Just write the code without communication.