/**
 * Given a song name and a list of songs, find and return the index of the song in the list.
 * If the song is not found, return -1.
 *
 * @param songName Name of the song to find.
 * @param songsList List of songs.
 * @return Index of the song in the list, or -1 if not found.
 */
fun findSongIndex(songName: String, songsList: List<String>): Int {

    var index = -1
    for ((i, song) in songsList.withIndex()) {
        if (song == songName) {
            index = i
            break
        }
    }
    return index
}
/**
 * Given a song name and a list of songs, find and return the index of the song in the list.
 * If the song is not found, return -1.
 *
 * @param songName Name of the song to find.
 * @param songsList List of songs.
 * @return Index of the song in the list, or -1 if not found.
 */
fun findSongIndex(songName: String, songsList: List<String>): Int {
/**
 * Given a song name and a list of songs, find and return the index of the song in the list.
 * If the song is not found, return -1.
 *
 * @param songName Name of the song to find.
 * @param songsList List of songs.
 * @return Index of the song in the list, or -1 if not found.
 */
fun findSongIndex(songName: String, songsList: List<String>): Int {

    var index = -1
    for ((i, song) in songsList.withIndex()) {
        if (song == songName) {
            index = i
            break
        }
    }
    return index
}