Apple and Oranges

Simple implementation for a coding test. The input is expected by std-in, one item (either "Apple" or "Orange") per line and terminated with an empty line.