Moody's interview question

Technical