Practice Real Company Assessment Patterns • Latest 2025–2026 Mock Tests

Programming Exercises

Find the length of a string

Easy

Problem Statement

Find the length of a string

Sample Input

"Hello, Kotlin!"

Sample Output

The length of the string is: 14

Limits

Time: 2s · Memory: 256 MB

Code Editor
00:00
fun main() { val input = "Hello, Kotlin!" // Add your code here to calculate the length }
Log in or sign up to run or submit your code.Log inSign up
Input
"Hello, Kotlin!"
Expected Output
The length of the string is: 14