Solved EquiLeader in java