Pregunta de entrevista de Basware

array question basic to higher level many logic they ask you to make on copy