Return the longest substring of s that reads the same forwards and backwards. Three approaches, same problem — switch between them and watch how time and space trade off.
s