I have been observing many times whenever test case number 6 gets failed, it's the most probable reason is that we have used int instead of long long, now this might be very basic and most of you think that why don't we just start with long long, in a contest the approach is darn tooting right.
But the question is the difference that it creates if space is not allocated dynamically, extra space for less requirement is not a good practice as a coder.
Anyways what's your view on test case number 6 if your code is syntactically and logically correct ?? Comment below with your observation!!!