Question d’entretien chez Amazon

LinkedList based question involving GCD