Check Array Formation Through Concatenation

给一个arr, 里面是不同的数字, 给一个2d int数组pieces, 里面是不同的数字组合. 问pieces能不能组成arr. 这个题我map了第一个数和index. 然后查找