HackerRank: Find Digits, Flowers, Median