wrong answer ,working for sample input showing
https://ide.codingblocks.com/s/53982
Codes of the string
For input 
1125
Correct Output
[aabe, aay, ale, kbe, ky]
Your output
aabe
aay
ale
kbe
ky
Your output format is not correct.
You need to print them in line seperated by commas and enclosed in square bracket.
Hit like if u get it 