public double calculateProbability(String s) {
        int stringLength = s.length();
        double probability = 1;

        for (int i = 0; i < stringLength; i++) {
            Character character = s.charAt(i);
            switch (character) {
                case 'A':
                    probability = probability * this.A.get(i);
                    break;
                case 'C':
                    probability = probability * this.C.get(i);
                    break;
                case 'G':
                    probability = probability * this.G.get(i);
                    break;
                case 'T':
                    probability = probability * this.T.get(i);
                    break;
            }
        }

        return probability;
    }