You will be given a string of characters containing only the following characters: ():
Create a function that returns a number based on the number of sad and smiley faces there are.
:) and (: are worth 1.:( and ): are worth -1.happinessNumber(":):(") ➞ -1
// The first 2 characters are :) +1 Total: 1
// The next 2 are ): -1 Total: 0
// The last 2 are :( -1 Total: -1
happinessNumber(":):(") ➞ -1
happinessNumber("(:)") ➞ 2
happinessNumber("::::") ➞ 0
All test cases will be valid.