/**
 * A police officer is on duty and is assigned to count the number of people entering a building.
 * If the person is armed, the officer should increase the count by 3, otherwise increase the count by 1.
 * Finally, return the count.
 *
 * @param count The current count of people entering the building.
 * @param isArmed Indicates whether the person entering the building is armed.
 * @return The updated count.
 *
 * Example:
 * policeOfficerDuty(10, true) // 13
 * policeOfficerDuty(5, false) // 6
 */
fun policeOfficerDuty(count: Int, isArmed: Boolean): Int {

    val updatedCount = count + if (isArmed) 3 else 1
    return updatedCount
}
/**
 * A police officer is on duty and is assigned to count the number of people entering a building.
 * If the person is armed, the officer should increase the count by 3, otherwise increase the count by 1.
 * Finally, return the count.
 *
 * @param count The current count of people entering the building.
 * @param isArmed Indicates whether the person entering the building is armed.
 * @return The updated count.
 *
 * Example:
 * policeOfficerDuty(10, true) // 13
 * policeOfficerDuty(5, false) // 6
 */
fun policeOfficerDuty(count: Int, isArmed: Boolean): Int {
/**
 * A police officer is on duty and is assigned to count the number of people entering a building.
 * If the person is armed, the officer should increase the count by 3, otherwise increase the count by 1.
 * Finally, return the count.
 *
 * @param count The current count of people entering the building.
 * @param isArmed Indicates whether the person entering the building is armed.
 * @return The updated count.
 *
 * Example:
 * policeOfficerDuty(10, true) // 13
 * policeOfficerDuty(5, false) // 6
 */
fun policeOfficerDuty(count: Int, isArmed: Boolean): Int {

    val updatedCount = count + if (isArmed) 3 else 1
    return updatedCount
}