Modified the implementation of getNumberFromChar to use ASCII characters and parseInt instead of switch case