HCL Interview Question

Write code for strlen