Johnson Controls Interview Question

Some non descript c code snippets.