Block interview question

Leetcode - Restore the Array From Adjacent Pairs Very similar