Pergunta de entrevista da empresa Broadcom

Write a C function, read it character by character through the phone.