It is showing run error

https://ide.codingblocks.com/s/233102…plz help with the code

plz help me with the question

Hey @dhirenkinha everything is good except arr size, make it 10^5 according to constraints