Solving continous sequence sum problem from http://code-warrior.herokuapp.com.