Vimanic Interview Question

basic C and some protocols