Stabilix interview question

Basic C,C++ and Java questions