401 B
401 B
Hints
1. Define the TreasureChest opaque type.
- Opaque types are defined using the
opaquekeyword.
2. Define the create function.
- The
string.lengthfunction can be used to get the length of a string.
3. Define open function.
- The
==operator can be used to compare two strings for equality.