C # program to check if characters of a string follow pattern defined by given pattern .
using System ; using System . Collections . Generic ; using System . Text ; class GFG { public static bool followsPattern ( String str , String pattern ) {