public static void main(String[] args) {
        int[] test = new int[] {1, 5, 5, 7, 8, 3, 5, 7, 2, 1, 3};
        int[] result = removeDuplicates(test);
        for (int i = 0; i < result.length; i++) {
            System.out.println(result[i]);
        }
    }