GoFro interview question

Questions from geeksforgeeks.com such as largest sum subarray problem