Solution: Add Logging to a Utility Function

Wrap a pure function with a logging decorator that prints input and output, without touching the original logic.

Solution: Add Logging to a Utility Function

Wrap a pure function with a logging decorator that prints input and output, without touching the original logic.