HackerRank Apple and Orange1