solved 43 sub-string division of pandigital numbers in ruby