passing most, but timing out on large numbers
took out substrings, still timing out
sample tests are passing for 384A
all tests passing