problem TheKingsFactorization