Python 3 Easy solution
\nclass Solution:\n    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        hashmap = {}\n        for i in range(len(pieces)):\n   
```\nclass Solution:\n    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        hashmap = {}\n        for i in range(len(pieces)):\n            hashmap[pieces[i][0]] = pieces[i]\n        print(hashmap)    \n        i = 0    \n        while i<len(arr):\n            if arr[i] not in hashmap.keys():\n                return False\n            \n            else:\n                lis = hashmap[arr[i]]\n                \n                for j in range(len(lis)):\n                    \n                    if lis[j] != arr[i]:\n                        return False\n                    i += 1\n       \n        return True\n\n\n```
['Python']