/**
 * Given a playlist and a song title, this function finds the position of the song in the playlist.
 *
 * @param playlist A list of songs in the playlist.
 * @param songTitle The title of the song to be found.
 * @return The position of the song in the playlist. Returns -1 if the song is not found.
 */
fun findSongInPlaylist(playlist: List<String>, songTitle: String): Int {

    for ((index, song) in playlist.withIndex()) {
        if (song == songTitle) {
            return index
        }
    }
    return -1
}
/**
 * Given a playlist and a song title, this function finds the position of the song in the playlist.
 *
 * @param playlist A list of songs in the playlist.
 * @param songTitle The title of the song to be found.
 * @return The position of the song in the playlist. Returns -1 if the song is not found.
 */
fun findSongInPlaylist(playlist: List<String>, songTitle: String): Int {
/**
 * Given a playlist and a song title, this function finds the position of the song in the playlist.
 *
 * @param playlist A list of songs in the playlist.
 * @param songTitle The title of the song to be found.
 * @return The position of the song in the playlist. Returns -1 if the song is not found.
 */
fun findSongInPlaylist(playlist: List<String>, songTitle: String): Int {

    for ((index, song) in playlist.withIndex()) {
        if (song == songTitle) {
            return index
        }
    }
    return -1
}