Longest Palindrome

You are given a single lowercase string as an argument. Return the longest palindrome contained in that string.

Palindromes are strings that form the same word if it is reversed.

Requirements

  • Must return a string

Example #1

solve("mammagamma")
> "ammagamma"

Example #2

solve("minimum")
> "minim"