EchoStar Interview Question

Given C code sample and correct if needed.