/**
 * This function takes a list of instruments and a target instrument. It uses a while loop to search for the
 * target instrument in the list and returns the index of the instrument if found, or -1 if not found.
 *
 * @param list_of_instruments A list of instruments as strings.
 * @param target_instrument A string representing the instrument to search for.
 * @return The index of the target instrument if found, or -1 if not found.
 */
fun findInstrument(listOfInstruments: List<String>, targetInstrument: String): Int {

    var index = 0
    while (index < listOfInstruments.size) {
        if (listOfInstruments[index] == targetInstrument) {
            return index
        }
        index++
    }
    return -1
}
/**
 * This function takes a list of instruments and a target instrument. It uses a while loop to search for the
 * target instrument in the list and returns the index of the instrument if found, or -1 if not found.
 *
 * @param list_of_instruments A list of instruments as strings.
 * @param target_instrument A string representing the instrument to search for.
 * @return The index of the target instrument if found, or -1 if not found.
 */
fun findInstrument(listOfInstruments: List<String>, targetInstrument: String): Int {
/**
 * This function takes a list of instruments and a target instrument. It uses a while loop to search for the
 * target instrument in the list and returns the index of the instrument if found, or -1 if not found.
 *
 * @param list_of_instruments A list of instruments as strings.
 * @param target_instrument A string representing the instrument to search for.
 * @return The index of the target instrument if found, or -1 if not found.
 */
fun findInstrument(listOfInstruments: List<String>, targetInstrument: String): Int {

    var index = 0
    while (index < listOfInstruments.size) {
        if (listOfInstruments[index] == targetInstrument) {
            return index
        }
        index++
    }
    return -1
}