WSP interview question

Everything was expected