Checked the code against pattern
qqweer
qwet
asqw

qqweer
aswer
qwet