Solve: Map Put (Pratice of Map and Sets)

very confusing

and import statements are not allowed

I’m trying to find this problem, do you happen to have the link?