TLE Problem B Round 939 Div 2
This was my submission 256491105. Can somebody explain to me why this solution gives TLE?
ICPC NA North Central and South Division