Emerson interview question

They ask basic question puzzles