Aspire Systems Interview Question

basic c programming and the logics