Driver method to test above methods
int main ( ) { string str [ ] = { " acd " , " dfg " , " wyz " , " yab " , " mop " , " bdfh " , " a " , " x " , " moqs " } ; int n = sizeof ( str ) / sizeof ( str [ 0 ] ) ; groupShiftedString ( str , n ) ; return 0 ; }