Create ReverseNodesinKGroup.java