Create a word from the first letters of multiple words (2d char array). The words length might be different.
Input (2D Char array) |
Output (Char array) |
{ { 'S', 'h', 'o', 'r', 't' }, {'M', 'e', 's', 's', 'a', 'g', 'e' }, {'S', 'e', 'r', 'v', 'i', 'c','e'} } |
{'S', 'M', 'S'} |
{ {'N', 'o', 'r', 't', 'h'}, {'E', 'a', 's', 't'}, {'W', 'e', 's', 't'}, {'S', 'o', 'u', 't', 'h'} } |
{'N', 'E', 'W', 'S'} |
{ { 'U', 'n', 'i', 't', 'e', 'd' }, { 'K', 'i', 'n', 'g', 'd','o','m' } } |
{'U', 'K'} |