text: if the current character is the first or the last character of the string then , this needs to be appended to the updatedString , since the corner alphabet irrespective of it being a vowel or a consonant , is never ' Sandwiched '
code: if ( i === 0 i === n - 1 ) { updatedString += a [ i ] ; continue ; }