Amazon Coding Question : Allie’s Apples