...

/

Challenge 5: Help the Policemen Catch the thieves!

Challenge 5: 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 ...