Challenge Information

Title : Sum Closest to 0
Difficulty : Medium
Solutions : 11
Maximum Score : 100
Completed by You: No
Description :

There is an array of integers given. You have to find the maximum sum of two elements that is nearest to zero.

Write a function solve that have the following parameter(s):
1.) arr = array of integer

Example
Input:
arr = [-8, 4, -10, -23]
Output:
-4

Explanation
The sum of -8 and 4 is "-4" that is closest to 0.

Constraints

Judocode