Sherlock and Cost | HackerRank

Sherlock and Cost