Nanoheal Interview Question

find the length of string