Q2. Code, compile and upload the following program. Name it Q2.cpp. (30 pts)
All submissions must compile without errors for grade evaluation.
Character extraction.
a) Create a c-string that contains: "5,3,B,1,8,c,5,E,6".
b) Create a function sumDigits that returns the sum of all numbers within the
c-string. Note that this will require type conversion (casting).
c) Create a function sumChars that returns a string object that contains the
concatenation of all chars within the original c-string.
d) Output the integer sum and concatenated string to console.
Output Example
Sum of digits: 28
Sum of chars: BCE