Microsoft interview question

mainly algorithm questions and mathematical tricks