Java Program To Find First Repeating Element In An Array Do The Groups