InsertOrAppendAndReverse.java added