Given an array of primes your task is to complete the function **removeDuplicate** which removes the duplicate element from such array . The function remove duplicate takes two argument one is the array of primes A [ ] and the second argument is the size of the array .

**Input:**

The first line of input contains an integer T denoting no of test case then T test cases follow. Each test case contains two lines . The first line of each test case contains an integer N denoting the size of the array . The next line contains the space separated values of the array A.

**Output:**

For each test case output will be the array with no duplicate elements .

**Constraints:**

1<=T<=200

1<=N=1000

2<=A[i] <=47

**Example:**

**Input**

1

6

2 2 3 3 7 5

**Output**

2 3 7 5

**Note:**The **Input/Ouput** format and **Example** given are used for system's internal purpose, and should be used by a user for **Expected Output** only. As it is a function problem, hence a user should not read any input from stdin/console. The task is to complete the function specified, and not to write the full code.

Author: Shubham Joshi 1

If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.

KshatriyaYash | 658 |

RuntimeTerror | 446 |

nikhil_sojan | 388 |

cypherr | 384 |

striver119 | 378 |

KshatriyaYash | 1066 |

nikhil_sojan | 972 |

lonecoder | 909 |

mazumderrohit8 | 864 |

SumitSingh27 | 832 |

blackshadows | 5327 |

Ibrahim Nash | 5215 |

akhayrutdinov | 5111 |

mb1973 | 4462 |

Quandray | 4444 |

Login to report an issue on this page.