← Capgemini questions

Convert halves of string to lower and upper case

Filed under Capgemini

Given a string of even length, convert the first half of the string to lowercase and the second half to uppercase. If the string has an odd length, the middle character remains unchanged while the…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Capgemini questions

Collected from public candidate posts and coding forums. Updated Nov 2026.