General Motors (GM) Interview Question

The online assessment contained 2 leetcode-esque questions.