Pergunta de entrevista da empresa Magmic

Give code to remove every second element from an array