Pool of digits

Problem Name:
Pool of digits
Site:HackerEarth
Links:
Tags:
Problem setters: