Update unique path ii.java