CMS Info Systems Interview Question

Discussing about output as expected.