Broadcom Interview Question

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