Ways to give a check

Problem Name:
Ways to give a check
Site:HackerRank
Links:
Tags:
Problem setters: