Added the Perm Check Java solution