Worked fine on custom cases but showing run error on tet cae
@chemant077
dry run your code for 6
app
apple
application
batman
batmobile
cat
7
ap
bat
batcave
bat
cat
appl
appledore
the ans should be
app
apple
application
batman
batmobile
No suggestions
batcave
batman
batmobile
cat
apple
application
No suggestions
its stopping when asked suggestions for bat again but working fine when am doing the same in custom case couldnt able to debug help