Micron Technology interview question

using certain logic gates how can you get this given output