Driver code
public static void Main ( String [ ] args ) { char [ ] A = " SEEKSFORGEEKS " . ToCharArray ( ) ; char [ ] B = " GEEKSFORGEEKG " . ToCharArray ( ) ; if ( canBeEqual ( A , B , A . Length ) ) Console . WriteLine ( " Yes " ) ; else Console . WriteLine ( " No " ) ; } }