Create unique path ii.java