TikTok Interview Question

1. easy greedy question 2. longest palindrome string