Amazon Interview Question

Easy peasy, lemon squeasy