Flowers Solution

Solution to Hacker Rank problem Flowers