Question 1
Input: world racecar madam coding python
Step 1: Palindromic words (read same forwards/backwards): madam racecar
Step 2: Non-palindromic words: coding python world
Step 3: Combine (palindromes first, then others, each sorted alphabetically): madam racecar coding python world
What is the final output?
Palindromic words first (alphabetically sorted), then non-palindromic words (alphabetically sorted): madam racecar coding python world