Objective
Scan a single command-line string and surface the longest contiguous slice that reads the same in both directions.
Steps
$ ./longest_palindrome "racecar"
racecar
$ ./longest_palindrome "abcdcbxyz"
bcdcb
$ ./longest_palindrome "shipitlevell"
level
$ ./longest_palindrome
wrong number of arguments
Expected files
Allowed functions

Objective
Scan a single command-line string and surface the longest contiguous slice that reads the same in both directions.
Steps
$ ./longest_palindrome "racecar"
racecar
$ ./longest_palindrome "abcdcbxyz"
bcdcb
$ ./longest_palindrome "shipitlevell"
level
$ ./longest_palindrome
wrong number of arguments
Expected files
Allowed functions

Tests
Run the tests to grade your code