Microsoft interview question

Simple two coding questions through codility.