@@ -0,0 +1,603 @@
+package frog_river_one;%0A%0Apublic class frog_river_one %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09int%5B%5D A=%7B1, 2, 3, 5, 2, 3%7D;%0A%09%09int X=5;%09%09%0A%09%09System.out.println(solution(X,A));%0A%09%7D%0A%09public static int solution(int X, int%5B%5D A)%0A%09%7B%0A%09%09int busca = X;%0A        boolean%5B%5D arrebusca = new boolean%5Bbusca+1%5D;        %0A        for(int i = 0; i %3C A.length; i++)%7B%0A            if(arrebusca%5BA%5Bi%5D%5D!=true)%7B%0A            %09arrebusca%5BA%5Bi%5D%5D = true;                %0A                busca--;                %0A            %7D%0A            if(busca == 0) return i;%0A        %7D%0A        return -1;%0A%09%7D%0A%7D%0A

Create frog_river_one.java