Sponsored
Use these hints if you're stuck. Try solving on your own first.
What will be the value of array sum if we remove the outlier from it?
Use hashmap to find occurrence of an element quickly.
Solve with full IDE support and test cases