this is the code for leetcode problem (https://leetcode.com/problems/palindrome-partitioning/)
line 42, I tried to append slice into another slice (2d slice as it wer