Question d’entretien chez Intuit

Given and array to provide maximum sum by doing floor and ceiling operation.