Driver code
static void Main ( ) { String str1 = " fodr " ; String str2 = " gork " ; int k = 2 ; if ( areKAnagrams ( str1 , str2 , k ) == true ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }