Cisco interview question

C Code for mindbender game played on desktop