Elegant Interview Question

C, c++