Confusion in the expected output


#1

A : [ "a", "ababa", "aba" ]

Your function returned the following :

15

The expected returned value :

4
Can anyone please explain how the answer can be 4 for this test case.