Find the Maximum Factor Score of Array
A factor score is the gcd times the lcm of the values, so try removing each element once and keep the best score.
A factor score is the gcd times the lcm of the values, so try removing each element once and keep the best score.