Pergunta de entrevista da empresa L&T Technology Services

Flaten given linkedlist into singlely linkedlist. Write a program where the user given needs to be added until it reaches to the single digit About oops in cpp