Mahjong Chain Chain two of the same Mahjong tiles. Connect the same tiles with a path that has no more than two…