Given a string s, return the number of characters in s.
Example 1: Input: s = "hello" Output: 5
Example 2: Input: s = "zoo" Output: 3
Constraints: 1 <= s.length <= 1000
Given a string s, return the number of characters in s.
Example 1: Input: s = "hello" Output: 5
Example 2: Input: s = "zoo" Output: 3
Constraints: 1 <= s.length <= 1000
Copyright 2026 algowars. All rights reserved.
Input 1 (string)
hello
Output 1 (integer)
5