/**
 * Given a sequence 'seq' and a target element 'target',
 * find the first occurrence of the target element in the sequence.
 * Use a break statement to terminate the search operation once the target is found.
 *
 * @param seq A sequence of elements to be searched.
 * @param target The target element to be found.
 * @return The index of the first occurrence of the target element in the sequence.
 * If target is not found, return -1.
 */
fun findSequence(seq: List<Any>, target: Any): Int {

    for ((index, element) in seq.withIndex()) {
        if (element == target) {
            return index
        }
        // Add your code here to break the loop if target is found
    }
    // Add your code here to return -1 if target is not found
    return -1
}

// Example usage
/**
 * Given a sequence 'seq' and a target element 'target',
 * find the first occurrence of the target element in the sequence.
 * Use a break statement to terminate the search operation once the target is found.
 *
 * @param seq A sequence of elements to be searched.
 * @param target The target element to be found.
 * @return The index of the first occurrence of the target element in the sequence.
 * If target is not found, return -1.
 */
fun findSequence(seq: List<Any>, target: Any): Int {
/**
 * Given a sequence 'seq' and a target element 'target',
 * find the first occurrence of the target element in the sequence.
 * Use a break statement to terminate the search operation once the target is found.
 *
 * @param seq A sequence of elements to be searched.
 * @param target The target element to be found.
 * @return The index of the first occurrence of the target element in the sequence.
 * If target is not found, return -1.
 */
fun findSequence(seq: List<Any>, target: Any): Int {

    for ((index, element) in seq.withIndex()) {
        if (element == target) {
            return index
        }
        // Add your code here to break the loop if target is found
    }
    // Add your code here to return -1 if target is not found
    return -1
}

// Example usage