leetcode 1743: Restore the array from the adjacent pairs

Published --