simple python loop
\ndef canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n            res=[]\n            for j in range(len(arr)):\n                for i in 
```\ndef canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n            res=[]\n            for j in range(len(arr)):\n                for i in range(len(pieces)):\n                    if arr[j]==pieces[i][0]:\n                        res=res+pieces[i]\n            return res==arr\n```
[]