eBay interview question

Finding error at a code