Update Reorder List.java

Adding the O(1) solution