
This code is from a student and it passed the tests I tried.
You can use it as a possible starting point, but no warranties
are provided.
