Write a function to calculate the length of given string?
Login to Submit
Input: "cat" Output: 3 Input: "dog" Output: 3 Input: "computer" Output: 8