https://www.hackerrank.com/contests/prezi-scale/challenges/scale