Company: Visa fte
Difficulty: medium
Artifact Symbol Sequence A group of intrepid adventurers is on a quest to decode a mysterious artifact that has a series of unique symbols etched along its circular edge. The order of these symbols has long been lost, but a collection of symbol pairs known to be adjacent to each other was found. Unfortunately, the pairs of symbols became jumbled over time, meaning each pair (x, y) could be recorded either as (x, y) or (y, x) . You are given an array symbolPairs representing these shuffled pairs, and your task is to rediscover the original sequence of symbols on the artifact\'s circular edge. Remember that any cyclic rotation of the sequence can be considered a correct solution, and the order of the sequence can be reversed as well because the circle has no fixed start or end. Please return any of the valid arrangements. Input Format An array of arrays where each inner array contains two integers representing a pair of adjacent symbols. Output Format An array representing any valid sequ