Microsoft interview question

Resume discussion Coding question - LC easy