Question d’entretien chez General Motors (GM)

Got an home assignment to solve an algorithmic problem