/**
 * Given a list of minerals and a target mineral, find the index of the target mineral in the list.
 *
 * @param mineralList List of minerals.
 * @param targetMineral The mineral to be searched.
 * @return The index of the target mineral, or -1 if it is not found.
 */
fun checkForMineral(mineralList: List<String>, targetMineral: String): Int {

    var index = -1
    for (i in mineralList.indices) {
        val mineral = mineralList[i]
        if (mineral == targetMineral) {
            index = i
            break
        }
    }
    return index
}
/**
 * Given a list of minerals and a target mineral, find the index of the target mineral in the list.
 *
 * @param mineralList List of minerals.
 * @param targetMineral The mineral to be searched.
 * @return The index of the target mineral, or -1 if it is not found.
 */
fun checkForMineral(mineralList: List<String>, targetMineral: String): Int {
/**
 * Given a list of minerals and a target mineral, find the index of the target mineral in the list.
 *
 * @param mineralList List of minerals.
 * @param targetMineral The mineral to be searched.
 * @return The index of the target mineral, or -1 if it is not found.
 */
fun checkForMineral(mineralList: List<String>, targetMineral: String): Int {

    var index = -1
    for (i in mineralList.indices) {
        val mineral = mineralList[i]
        if (mineral == targetMineral) {
            index = i
            break
        }
    }
    return index
}