Mutable to Immutable

Does the following program compile?

Get hands-on with 1000+ tech skills courses.