Add an solution for maximum subarray problem

A common interview question, I have added the problem as well as a
solution with an O(n) time complexity. If only the sum needs to be
returned, the code can be made shortened a lot.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>