Code getting TLE


my code is getting TLE.

@tusharbhardwaj127 try increasing temp array size

its still giving TLE

@tusharbhardwaj127
2 mistakes


corrected and commented