GlobalLogic Interview Question

How to handle encryption in SpringBoot. Write code to find maximum sum array.