Microsoft Interview Question

Create a function that accepts a C-style string (has a null terminating character) and a char n, and if the string contains n chars, remove the chars and handle the empty spaces after removal. Example: Input -- void removeChar(char[] glassdoor char c) Output -- gladoor