Pergunta de entrevista da empresa Amazon

LinkedList based question involving GCD