Micron Technology interview question

basics programming logic related question