solve it using java BigInteger class, brute force,good