Pergunta de entrevista da empresa bp

Convert interactions to linkedList and identify if input nodes are cyclic or intersection or neither. Input/output is something we have to handle