Please explain the editorial solution or any other solution which does not give TLE or MLE


#1

Comment body goes here.