Beautiful Strings Greedy Solution