Update P25.java

Bug Free. Since we cannot assign node to null hence we keep it -1 as its value