Help me in solving SESO03 problem

My issue

everything is write still saying wrong

My code

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		int n =8;
		int k=1;
		int[] array ={3,5,1,4,5,6,5,6};
		boolean found = false;
		
		for(int i=0 ;i<8; ++i){
		    if (array[i]==k){
		        found = true;
		        break;
		    }
		}
		
		if(found){
		    System.out.println("yes");
		}
		else{
		    System.out.println("no");
		}

	}
}

Learning course: Design and analysis of Algorithms
Problem Link: https://www.codechef.com/learn/course/abesit-daa/ABESITDA15/problems/SESO03

import java.util.*;
import java.lang.*;
import java.io.*;

class Codechef
{
	public static void main (String[] args) throws java.lang.Exception
	{
		// your code goes here
		
		
		int[] array ={3,5,1,4,5,6,5,6};
		boolean found = false;
		int len = array.length;
		int k=4;
		
		for(int i=0 ;i<len; i++){
		    if (array[i]==k){
		        found = true;
		        break;
		    }
		}
		
		if(found){
		    System.out.println("yes");
		}
		else{
		    System.out.println("no");
		}

	}
}

if there is still any issue copy the problem statement