Infosys interview question

Calculate Length of string without using length function