a.      Replace the character at index 2 with the character at the last index.

برضو حل

a.      Print the letter after the first character in s. i.e. in alphabetic order.

Hint: H is the first letter in s so you should print I;