Pregunta de entrevista de Infosys

How can you push linked list into an array , write down the function for it