https://romankurnovskii.com/en/tracks/algorithms-101/leetcode/medium/1743/
1743. Restore the Array From Adjacent Pairs