Create transition_compressor.java

Steps to execute the program:
1. Enter the grammer in transition.txt with any spaces you wish as shown
2. run transition_compressor.java
2. run transition.java

input file-transition.txt
output file-transitionout.txt