Cognizant interview question

Lowest Common Multiple (LCM) Character Frequencies