Domanda di colloquio di Amazon

Kadane's Algorithm and some modification to it, BFS implementation