Write a command line utility called changestr.c that will allow the user to either remove a part of a string or replace a part of the string based on command line parameters.The usage should be: changestr flag string1 [string2] string3. Here, string2 is optional and depends on whether the flag is R or r. If the flag is R, then the program should attempt to replace string2 with string3 inside of string1. If the flag is r, then the program should attempt to remove string3 from within string1 and string2 should not be specified. (That is, you can ignore everything after the 4th command line parameter where 4 includes the name of the program.)
The program should display the resulting string or the original string if the action cannot be accomplished. If an incorrect flag is specified or not enough parameters are supplied based on the flag, then a set of messages explaining the correct usage should be displayed.
Sample Solution