Problem Statment
Given a dictionary of words where each word follows CamelCase notation, print all words in the dictionary that match with a given pattern consisting of uppercase characters only. CamelCase is the practice of writing compound words or phrases such that each word or abbreviation begins with a capital letter. Example - AlgorithmicTreasure.
Example 1:
Input:
2
8
Hi Hello HelloWorld HiTech HiGeek HiTechWorld HiTechCity HiTechLab
HA
3
Welcome WelcomeToAlgorithmicTreasure AlgorithmicTreasure
WTAT
Output:
No match found
WelcomeToAlgorithmicTreasure