import java.util.*; class Solution { public int[] solution(int[] arr) { ArrayList list = new ArrayList(); int[] copyArr = Arrays.copyOf(arr, arr.length); Arrays.sort(copyArr); int min = copyArr[0]; if(arr.length == 1 && arr[0] == 10 ){ return new int[] {-1}; } for(int i=0; i