Strongest fighter


not able to run all the test cases …please make me understand why

I think N is <=10000000 and you had made the size of array small that is why i think it showing wa.