/**
 * Given the time and the distance covered by an athlete, return their current position.
 *
 * - If the time is less than 0 or the distance is less than 0, return "Invalid input".
 * - If the time is 0, return "Starting position".
 * - If the distance is 0, return "Still at starting position".
 * - If the time is positive and the distance is also positive:
 *     - If the athlete has not covered the distance yet, return "Not reached destination".
 *     - If the athlete has reached the destination, return "Reached destination".
 *     - If the athlete's position is unknown, return "Unknown position".
 *
 * @param time The time elapsed (in seconds).
 * @param distance The distance covered (in meters).
 * @return The athlete's current position.
 */
fun athletePosition(time: Int, distance: Int): String {

    if (time < 0 || distance < 0) {
        return "Invalid input"
    }
    if (time == 0) {
        return "Starting position"
    }
    if (distance == 0) {
        return "Still at starting position"
    }
    if (time > 0 && distance > 0) {
        return when {
            distance > time -> "Not reached destination"
            distance == time -> "Reached destination"
            else -> "Unknown position"
        }
    }
    return "Unknown position"
}
/**
 * Given the time and the distance covered by an athlete, return their current position.
 *
 * - If the time is less than 0 or the distance is less than 0, return "Invalid input".
 * - If the time is 0, return "Starting position".
 * - If the distance is 0, return "Still at starting position".
 * - If the time is positive and the distance is also positive:
 *     - If the athlete has not covered the distance yet, return "Not reached destination".
 *     - If the athlete has reached the destination, return "Reached destination".
 *     - If the athlete's position is unknown, return "Unknown position".
 *
 * @param time The time elapsed (in seconds).
 * @param distance The distance covered (in meters).
 * @return The athlete's current position.
 */
fun athletePosition(time: Int, distance: Int): String {
/**
 * Given the time and the distance covered by an athlete, return their current position.
 *
 * - If the time is less than 0 or the distance is less than 0, return "Invalid input".
 * - If the time is 0, return "Starting position".
 * - If the distance is 0, return "Still at starting position".
 * - If the time is positive and the distance is also positive:
 *     - If the athlete has not covered the distance yet, return "Not reached destination".
 *     - If the athlete has reached the destination, return "Reached destination".
 *     - If the athlete's position is unknown, return "Unknown position".
 *
 * @param time The time elapsed (in seconds).
 * @param distance The distance covered (in meters).
 * @return The athlete's current position.
 */
fun athletePosition(time: Int, distance: Int): String {

    if (time < 0 || distance < 0) {
        return "Invalid input"
    }
    if (time == 0) {
        return "Starting position"
    }
    if (distance == 0) {
        return "Still at starting position"
    }
    if (time > 0 && distance > 0) {
        return when {
            distance > time -> "Not reached destination"
            distance == time -> "Reached destination"
            else -> "Unknown position"
        }
    }
    return "Unknown position"
}