Implement a program to calculate the length of a string without using built-in functions.
MediumProblem Statement
Implement a program to calculate the length of a string without using built-in functions.
Sample Input
std::string str = "Hello World";
Sample Output
Length of the string = 11
Limits
Time: 2s · Memory: 256 MB