/**
 * This function calculates the final position of particles moving with constant velocity using the left and right shift operators, within a given time interval
 */
fun findParticles(initialPosition: List<Int>, velocity: List<Int>): List<Int> {

    val totalParticles = initialPosition.size
    val finalPosition = mutableListOf<Int>()
    val timeInterval = 20

    for (i in 0 until totalParticles) {
        val pos = initialPosition[i]
        val vel = velocity[i]
        var finalPos = pos shl 2
        finalPos = finalPos shr timeInterval
        // Add the final position to the list
        finalPosition.add(finalPos)
    }

    return finalPosition
}
/**
 * This function calculates the final position of particles moving with constant velocity using the left and right shift operators, within a given time interval
 */
fun findParticles(initialPosition: List<Int>, velocity: List<Int>): List<Int> {
/**
 * This function calculates the final position of particles moving with constant velocity using the left and right shift operators, within a given time interval
 */
fun findParticles(initialPosition: List<Int>, velocity: List<Int>): List<Int> {

    val totalParticles = initialPosition.size
    val finalPosition = mutableListOf<Int>()
    val timeInterval = 20

    for (i in 0 until totalParticles) {
        val pos = initialPosition[i]
        val vel = velocity[i]
        var finalPos = pos shl 2
        finalPos = finalPos shr timeInterval
        // Add the final position to the list
        finalPosition.add(finalPos)
    }

    return finalPosition
}