/**
 * This function takes an album and an index as arguments. It deletes a photo from the album at the given index.
 *
 * @param album A list containing the photos in the album.
 * @param index The position of the photo to be deleted.
 * @return The updated album with the photo deleted.
 */
fun deletePhoto(album: MutableList<String>, index: Int): MutableList<String> {

    if (album.size > index) {
        album.removeAt(index)
    }
    return album
}
/**
 * This function takes an album and an index as arguments. It deletes a photo from the album at the given index.
 *
 * @param album A list containing the photos in the album.
 * @param index The position of the photo to be deleted.
 * @return The updated album with the photo deleted.
 */
fun deletePhoto(album: MutableList<String>, index: Int): MutableList<String> {
/**
 * This function takes an album and an index as arguments. It deletes a photo from the album at the given index.
 *
 * @param album A list containing the photos in the album.
 * @param index The position of the photo to be deleted.
 * @return The updated album with the photo deleted.
 */
fun deletePhoto(album: MutableList<String>, index: Int): MutableList<String> {

    if (album.size > index) {
        album.removeAt(index)
    }
    return album
}