programming riddle

Nice programming riddle:


A solution in Scala:


I like how the scala solution is very desriptive (declerative). (If you know Scala of course)

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at