TCCC '24 Apr P2 - Usernamxxxe
View as PDFThornhill Computer Club 2024 - April Contest - Problem 2
While typing out a cool username to use for the popular game League of Legends, was unfortunately hit by a rock which caused him to type gibberish. He desired to have a bunch of capital 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
forxtXnixteR
Sample Output 1
XXXfortniteR
Comments