Function to encrypt the String
static String encryption ( char [ ] s ) { int l = s . Length ; int b = ( int ) Math . Ceiling ( Math . Sqrt ( l ) ) ; int a = ( int ) Math . Floor ( Math . Sqrt ( l ) ) ; String encrypted = " " ; if ( b * a < l ) { if ( Math . Min ( b , a ) == b ) { b = b + 1 ; } else { a = a + 1 ; } }