Create ReversalChain.java