Update PalindromePartitioning.java

Submission Result: Compile Error

Line 37: cannot find symbol: variable entry

Submission Result: Output Limit Exceeded

Submission Result: Compile Error

Line 58: cannot find symbol: variable str

Submission Result: Output Limit Exceeded L 39