Without using intersection() function write a code of the algorithm for getting intersection of two lists