hackerrank day 2 more dice solution