Micron Technology Interview Question

basics programming logic related question