CMS Info Systems interview question

Discussing about output as expected.