Amazon Interview Question

Related to maximum continuous sum with only 1 and 0 as input