The last two test cases are giving run error. Please check my code at https://ide.codingblocks.com/s/95417.
@urvigoel26 hey urvi increase the size of the array 200 to 1000