Pergunta de entrevista da empresa TikTok

Leetcode: Longest Palindromic Substring. The recruiter let me write the code myself, not the normal process of saying out the thoughts and explain before writing each line of code.