Pergunta de entrevista da empresa Yelp

Given two arrays as inputs, make a confusion matrix.