Added Java solution for Equi problem.