Here is a code problem:
<SUBTASK>

Your task is to generate a code to solve this problem. Do not incorporate code snippets to demonstrate the example usage of the generate code.
Generate the code in the following format:
```<LANGUAGE>
your code here
```
