Thornhill Computer Club 2024 - April Contest - Problem 2
While typing out a cool username to use for the popular game League of Legends, X
's at the front of his username but they ended up in random places due to the impact. Write a program that removes all X
's in a given string of length and moves them to the front, making them all uppercase.
Input Specifications
The first and only line of input will contain the string
Output Specifications
Print the corrected, Cooler username
Sample Input 1
Copy
forxtXnixteR
Sample Output 1
Copy
XXXfortniteR
Comments