Microsoft interview question

were simple but some tricky