For this Question: Given a list of employee names. You need to search if a given person exists in the employee list or not?First line contains a single integer n denoting number of employees.
Next n line contains name of each employee.
Next line contains a single name.

<b>Constraints</b>
1 &le; n &le; 10<sup>5</sup>
1 &le; length of names &le; 20
name is made of only lowercase English letters.Output "YES" if given person exist in employee list else print "NO".Example :
4
jace
luke
deamon 
aemond
luke

Output:
YES

Explanation:
employees : [ jace, luke, deamon, aemond ]
person : luke
luke exists in employee list., I have written this Solution Code: import java.io.*;
import java.util.*;


public class Main {
    


    public static void main(String[] args) {
        
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        OutputWriter out = new OutputWriter(outputStream);
        
        int n=Integer.parseInt(in.next());
        
        HashMap<String,Integer> emp = new HashMap<>();
        for(int i=0;i<n;i++){
            String s=in.next();
            emp.put(s,1);
        }
        String name = in.next();
        if(emp.containsKey(name)){
            out.print("YES");
        }
        else out.print("NO");
        out.close();
    }

    
    static class InputReader {
        BufferedReader reader;
        StringTokenizer tokenizer;
        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

    }

    static class OutputWriter {
        private final PrintWriter writer;

        public OutputWriter(OutputStream outputStream) {
            writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(outputStream)));
        }

        public OutputWriter(Writer writer) {
            this.writer = new PrintWriter(writer);
        }

        public void print(Object... objects) {
            for (int i = 0; i < objects.length; i++) {
                if (i != 0) {
                    writer.print(' ');
                }
                writer.print(objects[i]);
            }
        }

        public void println(Object... objects) {
            print(objects);
            writer.println();
        }

        public void close() {
            writer.close();
        }

        public void println(int i) {
            writer.println(i);
        }

    }
}
, In this Programming Language: Java, Now tell me if this Code is compilable or not?