Question d’entretien chez Fidessa

Code pair round: Find a pair of numbers in given array whose difference is K. String compression. Given 2 lists, find all the elements which are NOT common in both the lists.