Python 3 Editorial Solution TLE


#1

Your own solution results in TLE, but works in Python 2.7. Please fix this.