AKUNA CAPITAL Interview Question

It was a leetcode hard like palindrome partioning