/**
 * Concatenate strings based on biomedical data and labels
 */
fun concatenateStrings(biomedicalData: List<Int>, labels: List<String>): String {

    var concatenatedString = ""

    for (data in biomedicalData) {
        when {
            data < 0 -> concatenatedString += labels[0].substring(1)
            data == 0 -> concatenatedString += labels.last()
            else -> {
                val index = data % labels.size
                concatenatedString += if (data > 100) {
                    labels[index].substring(0, 2).repeat(3)
                } else {
                    labels[index].substring(0, 2)
                }
            }
        }
    }

    return concatenatedString
}
/**
 * Concatenate strings based on biomedical data and labels
 */
fun concatenateStrings(biomedicalData: List<Int>, labels: List<String>): String {
/**
 * Concatenate strings based on biomedical data and labels
 */
fun concatenateStrings(biomedicalData: List<Int>, labels: List<String>): String {

    var concatenatedString = ""

    for (data in biomedicalData) {
        when {
            data < 0 -> concatenatedString += labels[0].substring(1)
            data == 0 -> concatenatedString += labels.last()
            else -> {
                val index = data % labels.size
                concatenatedString += if (data > 100) {
                    labels[index].substring(0, 2).repeat(3)
                } else {
                    labels[index].substring(0, 2)
                }
            }
        }
    }

    return concatenatedString
}