How to get alternative array elements and store to data table?

Hi Everyone,

My requirement is to get alternative elements from an array and convert to two data tables

input : string[8] { “12367867”, “25”, “01982726”, “50”,“19284656”, “25”, “90174826”, “25” }
required output : DT1 : { “12367867”, “01982726”, “19284656”, “19284656”,“90174826”}
DT2 : {“25”,“50”,“25”,“25”}
Thanks

Like this:

Processusvierge.zip (2,5 Ko)