import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { static long maximumPeople(long[] p, long[] x, long[] y, long[] r) { // Return the maximum number of people that will be in a sunny town after removing exactly one cloud. //keep track of towns with no overlapping cloud List indexOfTownsWithNoClouds = new ArrayList(); //keep track of towns with overlapping cloud; List indexOfTownsWithClouds = new ArrayList(); int count = 0; //Remove cloud from town with max population; for(int i =0; i < y.length; i++){ //check if it overlaps any town with max ppl long maxRange = y[i] + r[i]; long minRange = y[i] - r[i]; for(int j = 0; j