Solved world of numbers hackerrank