A binary string is a string consisting only of 0's and/or 1's.

For example, 01011, 1111, and 00 are all binary strings. The prefix of a string is any substring of the string that includes the beginning of the string. For example, the prefixes of 11010 are 1, 11, 110, 1101, and 11010.

We consider a non-empty binary string to be magical if the following two conditions are true:

- The number of 0's is equal to the number of 1's.
- For every prefix of the binary string, the number of 1's should not be less than the number of 0's.

For example, 11010 is not magical because it doesn't have an equal number of 0's and 1's, but 110100 is magical because it satisfies both of the above conditions.

A magical string can contain multiple magical substrings. If two consecutive substrings are magical, then we can swap the substrings as long as the resulting string is still a magical string. Given a magical binary string, binString, perform zero or more swap operations on its consecutive magical substrings such that the resulting string is as lexicographically large as possible.

Two substrings are considered to be consecutive if the last character of the first substring occurs exactly one index before the first character of the second substring.

Function Description Complete the largestMagical function in the editor below. Parameter Name Type Description binString String The input binary string. Return The function must return a string denoting the lexicographically largest possible magical string that can be formed by performing zero or more swap operations on consecutive magical substrings of binString.

It is guaranteed that binString is a binary string of 1's and 0's only. 1 ≤ the length of the string ≤ 50 It is guaranteed that binString is a magical string.

Input Format For Custom Testing Sample

Case 0 Sample Input For Custom Testing 11011000

Sample Output 11100100

Explanation :

Given the magical string binString = 1 10 11000, we can choose two consecutive magical substrings, 1100 and 10, to swap such that the resultant string, str = 11100 10 0, is the lexicographically largest possible magical string possible. Thus, we return the value of str, which is 11100100, as our answer.

Test case 1:

input - 11011000

output - 11100100

Test case 2 :

Input - 1100

output - 1100

Test case 3:

Input :1101001100

Output : 1101001100