Refactor: refactor the calculateFizzBzz method