To Capitalize any given character in a given String and print the output string.
Sigiloso
We can solve this simply either by using replace(" ", " ") method or by using substring method and iterating through each character and checking for the required character, then replacing it with the required one and then adding each characters in an empty string inside the loop.