Solves Problem 43 in Python and modifies default range of common pandigital string function