Caterpillar Interview Question

How would you measure the width of a string?