I was trying to solve a problem in Python and faced some issues with a specific set of test case that are:
5 qwertyuioplkjhgfdsazxcvbnm aaa