Vimanic interview question

basic C and some protocols