Pergunta de entrevista da empresa Amazon

longest subset of singly linked list which is decreasing