Олимпиадный тренинг

Задача 39831. Replacing letters, excluding first and last


The program replaces in the string s all letters 'h' to 'H', except for the first and last occurrence. Insert the missing lines.
 
Examples
# Input Output
1 In the hole in the ground there lived a hobbit In the Hole in tHe ground tHere lived a hobbit