Mutable to Immutable

Does the following program compile?

Get hands-on with 1200+ tech skills courses.