https://www.hackerrank.com/contests/codesprint5/challenges/special-multiple