Pergunta de entrevista da empresa Intuit

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