Sollicitatievraag bij Digital Brain Technologies

A simple algorithm question, can use any programming language.