Create reverseHalf.java