4
4
aabc
abca
cbdd
cdaa
2
a
b
5
abcdc
acb
cbaca
cddc
cac
2
cb
b
