eBay Interview Question

Finding error at a code