GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
4 1 9 abcd bc- a2d- b3 c3 (bc-)5 (bc)4d- d2 b-cbcb-cbc-a- b-d-bd c-d-cd y try.inperm