Nokia Interview Question

basics of c and java c++