you give array distinct integer arr array integer array piece integer piece distinct your goal form arr concatenate arrays piece order however allow reorder integer array piecesireturn true possible form array arr piece otherwise return false Example 1input arr 1588 piece 8815output trueExplanation Concatenate 15 88example 2input arr 491816 piece 161849output falseexplanation even number match reorder pieces0Example 3Input arr 9146478 piece 7846491output trueexplanation Concatenate 91 464 78 Constraints1 pieceslength arrlength 100sumpiecesilength arrlength1 piecesilength arrlength1 arri piecesij 100The integer arr distinctthe integer piece distinct ie if flatten piece 1D array integer array distinct