User:Wearsunscreen/sandbox/99/Template:problem

Problem statement here

Example in Elm:

Result:

Solutions