Intuit Interview Question

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