General Motors (GM) Interview Question

Leetcode easy something about finding values in an array with the same first number as other items last number ex [21, 13]