Baseball Scorekeeping

Alex plays a game in which he throws a baseball at various blocks marked with a symbol. Each block comes with a symbol that can be an integer, X, +, or Z. Given a list of strings represent blocks, return the final score.


This is a companion discussion topic for the original entry at https://algo.monster/problems/baseball_scorekeeping/