Pregunta de entrevista de SAP

To solve an array and linked list question