leetle

Daily challenge for 2025-07-11

192. Convert String to Title Case

Write a function solve that takes a string and converts it to title case, where the first letter of each word is capitalized and the rest are lowercase.

Example:
Input: "hello world"
Output: "Hello World"

Run this challenge interactively in Python or JavaScript when the app loads.