EchoStar Interview Question

Fix bugs in a simple C code