Pergunta de entrevista da empresa Lightricks

In the technical interview they asked about solving a problem where you get 2 arrays, one for integer numbers where the numbers in it can repeat themselves called "nums", and one for integer numbers as well called "data". You are asked to compute how many each number from nums show up in total in data and return the total sum of numbers from nums. Numbers can show multiple times in nums and in data as well and you need to take repeats into account.