Find maximum island sum and required indices | DocuSign Interview Question