Remove unnecessary duplicate integer array