...

/

Challenge: Help the Policemen Catch the Thieves

Challenge: Help the Policemen Catch the Thieves

Given a number of policemen and thieves, calculate the maximum number of thieves that can be caught.

Problem Statement

Implement a function that calculates the number of thieves that can be caught.

Input

An array of size n where each element ...