**Compilation/Execution Result:**

45.47%

Given an array, return second largest element from an array.

**Input:**

The first line of input contains an integer T denoting the number of test cases.

The first line of each test case is N,N is the size of array.

The second line of each test case contains N input C[i].

**Output:**

Print the second largest element.

**Constraints:**

1 ≤ T ≤ 50

1 ≤ N ≤ 500

1 ≤ C[i] ≤ 1200

**Example:**

Input

2

5

89 24 75 11 23

6

56 42 21 23 65 20

Output

75

56

Pulkit Gupta 2 | 171 |

Relentless | 158 |

Ibrahim Nash | 146 |

Sahil_Bansall | 121 |

lets_have_a_break! | 120 |

Ibrahim Nash | 654 |

KartikAgarwal | 545 |

rs119574 | 371 |

Little Noah | 367 |

surbhi_7 | 356 |

akhayrutdinov | 4267 |

sanjay05 | 3633 |

Ibrahim Nash | 3214 |

Quandray | 3044 |

Michael Riegger | 2359 |