Arrow Electronics interview question

C, C++, write small program