Microsoft interview question

How to pass the question?