Bitwise interview question

Find length of string without any loops