Pergunta de entrevista da empresa Meta

They asked two coding questions. One was writing merge sort algorithm and the other comparing two texts and returning the x number of in common charachters