Microsoft interview question

Basic CS Problem Solving