2011-final-value-of-variable-after-performing-operations/2011-final-value-of-variable-after-performing-operations.java
class Solution {
    public int finalValueAfterOperations(String[] operations) {
        
        int result = 0;
        for(int i=0;i< operations.length;i++) {
            if(operations[i].charAt(1) == '+'){
                    result++;
            }
            else{ 
                result--;
            }
        }
    	return result;        
    }
}