an TLE solution
import accepted solution