Why am i getting the error? runguard: warning: timelimit exceeded (wall time): aborting command

hello @preetham31

a) use given n to declare array size

b) use >= in place of > for comparision

can i get an modified code,not esolved yet