/**
 * Given the number of patterns and the length of each pattern,
 * calculate the total length of the patterns.
 *
 * @param numOfPatterns An integer representing the number of patterns.
 * @param lengthOfPattern An integer representing the length of each pattern.
 * @return The total length of the patterns as an integer.
 */
fun calculatePatternLength(numOfPatterns: Int, lengthOfPattern: Int): Int {

    var totalLength = 0
    repeat(numOfPatterns) {
        totalLength += lengthOfPattern
    }
    return totalLength
}
/**
 * Given the number of patterns and the length of each pattern,
 * calculate the total length of the patterns.
 *
 * @param numOfPatterns An integer representing the number of patterns.
 * @param lengthOfPattern An integer representing the length of each pattern.
 * @return The total length of the patterns as an integer.
 */
fun calculatePatternLength(numOfPatterns: Int, lengthOfPattern: Int): Int {
/**
 * Given the number of patterns and the length of each pattern,
 * calculate the total length of the patterns.
 *
 * @param numOfPatterns An integer representing the number of patterns.
 * @param lengthOfPattern An integer representing the length of each pattern.
 * @return The total length of the patterns as an integer.
 */
fun calculatePatternLength(numOfPatterns: Int, lengthOfPattern: Int): Int {

    var totalLength = 0
    repeat(numOfPatterns) {
        totalLength += lengthOfPattern
    }
    return totalLength
}