AVIN Systems interview question

Oops Concept Pattern Matching Palindrome Remove duplicate within array