How is the sample input returning true? According to me the reverse of array1 : {4, 0, 2, 1, 3} should be {3, 1, 2, 0, 4}. However in the question it is : {1, 3, 2, 4, 0}
Am I interpreting the question wrong?
Here is my code btw: https://ide.codingblocks.com/#/s/13693