public static LinkedList<String> computeIntersection(LinkedList<String> A, LinkedList<String> B)
    {
       LinkedList<String> intersection = new LinkedList<String>(); 

       for( int i = 0; i <A.size(); i++)
       {
           String item = A.get(i);
           if(B.contains(item))
           {
               intersection.add(item);
           }
       }

       return intersection;
    }