Wrong output for the case "1234"


#1

The custom output for a test case “1234” gives output as 1. Whereas the correct output should be 3.
1,2,3,4,-> abcd
12,3,4 -> lcd
1,23,4 -> awd