Python Easy Solution ( While and For loop)
```\nclass Solution:\n    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        cnt=0\n        j=0\n        while j<len(arr):\n     
```\nclass Solution:\n    def canFormArray(self, arr: List[int], pieces: List[List[int]]) -> bool:\n        cnt=0\n        j=0\n        while j<len(arr):\n            inc=0\n            for i in pieces:\n                l=len(i)\n                if arr[j:j+l]==i:\n                    cnt+=l\n                    j+=l\n                    inc+=1\n            if not inc:\n                j+=1              \n        return cnt==len(arr)
[]