Create Problem012.java

includes findFactors and generateNum, which are inefficient