Double Sum

Warm-Up

Write a function that returns the sum of two integers or if they are the same, returns double their sum.

doubleSum(1,4); //returns 5
doubleSum(3,3); //returns 12