Arrow Electronics Interview Question

C, C++, write small program