Micron Technology interview question

about gates basic concepts of c and java