Can you explain why 1 test case is not matching for my method

Hello @vageesha please share your code by saving it on ide.codingblocks.com

check this :