I have made a program which camel cases sentences. Also, it is instructed to not to print whitespaces, hyphens(-) and underscores(_).
HERE IS MY CODE
The output which I had expected is
but what I am getting is mentioned below:
The same is happening in the case of underscore but not whitespace.
Therefore, I would like to know from the community where am I going wrong. Every suggestion will be appreciated.