Prefix calculator exercise