The Suffix Matches

Problem Name:
The Suffix Matches
Site:HackerEarth
Links:
Tags:
Problem setters: