Write a program that reads a string of up to 100 characters and displays it after replacing all 'a' characters that exist at the beginning and at the end of the string with the space character (' '). For example, if the user enters "aabbadaa", the program should display "bbad".
Sample Input 1:
aaTriHarda
Sample Output 1:
TriHard
Sample Input 2:
ResidentSleeper
Sample Output 2:
ResidentSleeper
References: C From Theory