Problem Different Digits solved, using java :D