Capgemini, Recent Online Assessment(OA) Questions | Dream String | Feb 2025

Capgemini · Question · Posted Mar 2026

Problem Statement: Dream String You are given a string S of length N. Your task is to determine and print the minimum number of operations required to convert S into a Dream string. A Dream string consists only of vowels. In an operation, you select an index i in S and increment S[i] to the next character cyclically. That is, 'a' becomes 'b', 'b' becomes 'c', and so on, and 'z' becomes 'a'. Note: If S is already a Dream ...

The full answer & interview discussion are available to premium members.

Log in Create a free account