EZShop Interview Question

Review code and explain it