Moxa Inc. Interview Question

c coding test, behavior