A dice tower

Problem Name:
A dice tower
Site:HackerEarth
Links:
Tags:
Problem setters: