C # implementation of the above approach
using System ; using System . Collections ; class GFG { static bool find ( char [ ] x , char c ) { for ( int i = 0 ; i < x . Length ; i ++ ) if ( x [ i ] == c ) return true ; return false ; } static bool find ( ArrayList v , char c ) { for ( int i = 0 ; i < v . Count ; i ++ ) if ( ( char ) v [ i ] == c ) return true ; return false ; } static void addAllVowel ( string str ) {