Nested interview question

Create an array of with and array of each pair items in an array

Interview Answer

Anonymous

11 Jul 2018

Loop starting at 1, until the end take each item and the previous put them in an array and place them in the return array