For this Question: Alice is rearranging her library. She takes the innermost shelf and reverses the order of books. She breaks the walls of the shelf. In the end, there will be only books and no shelf walls. Print the order of books.
Opening and closing walls of shelves are shown by '/' and '\' respectively whereas books are represented by lower case alphabets.The first line contains string s displaying her library.

<b>Constraints</b>
2 ≤ |s| ≤ 10<sup>3</sup>Print only one string displaying Alice's library after rearrangement.Sample input
/u/love\i\

Sample Output
iloveu

Explanation
/u/love\i\
Here Alice breaks the inner most shelf and reverse the order. So the library will be /uevoli\. 
Now she breaks the outermost wall and reverses the order. So the library will be iloveu., I have written this Solution Code:     import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.util.StringTokenizer;
     
    class Main {
        private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
     
        public static void main(String[] args) throws IOException {
            char[] a = br.readLine().toCharArray();
     
            int len = a.length;
            while (true) {
                int firstClosing = 0;
                while (firstClosing < len && a[firstClosing] != '\\')
                    firstClosing++;
                if (firstClosing == len) break;
     
                int opening = firstClosing - 1;
                while (a[opening] != '/') opening--;
                for (int i = opening + 1, j = firstClosing - 1; i < j; i++, j--) {
                    char temp = a[i];
                    a[i] = a[j];
                    a[j] = temp;
                }
                len -= 2;
                System.arraycopy(a, opening + 1, a, opening, firstClosing - opening - 1);
                System.arraycopy(a, firstClosing + 1,
                        a, firstClosing - 1, a.length - firstClosing - 1);
            }
     
            System.out.println(new String(a, 0, len));
        }
    }, In this Programming Language: Java, Now tell me if this Code is compilable or not?