/**
 * Given the number of clients and the average years since graduation,
 * calculate the ages of the social worker's clients.
 *
 * @param numClients The number of clients the social worker has.
 * @param avgYears The average number of years since graduation for the social worker's clients.
 * @return A list containing the ages of the social worker's clients.
 *
 * Example:
 * socialWorkerAge(5, 3) => [15, 18, 21, 24, 27]
 */
fun socialWorkerAge(numClients: Int, avgYears: Int): List<Int> {

    val ages = mutableListOf<Int>()
    var clientAge = 0

    repeat(numClients) {
        clientAge += avgYears
        ages.add(clientAge)
    }

    return ages
}
/**
 * Given the number of clients and the average years since graduation,
 * calculate the ages of the social worker's clients.
 *
 * @param numClients The number of clients the social worker has.
 * @param avgYears The average number of years since graduation for the social worker's clients.
 * @return A list containing the ages of the social worker's clients.
 *
 * Example:
 * socialWorkerAge(5, 3) => [15, 18, 21, 24, 27]
 */
fun socialWorkerAge(numClients: Int, avgYears: Int): List<Int> {
/**
 * Given the number of clients and the average years since graduation,
 * calculate the ages of the social worker's clients.
 *
 * @param numClients The number of clients the social worker has.
 * @param avgYears The average number of years since graduation for the social worker's clients.
 * @return A list containing the ages of the social worker's clients.
 *
 * Example:
 * socialWorkerAge(5, 3) => [15, 18, 21, 24, 27]
 */
fun socialWorkerAge(numClients: Int, avgYears: Int): List<Int> {

    val ages = mutableListOf<Int>()
    var clientAge = 0

    repeat(numClients) {
        clientAge += avgYears
        ages.add(clientAge)
    }

    return ages
}