https://www.hackerrank.com/contests/w4/challenges/crush