Cisco Interview Question

C Code for mindbender game played on desktop