Editorial Python 3 Solution gives TLE


#1

Comment body goes here.