IBM interview question

c & java