permute

ABSTRACT

Calculates the number of ways of permute r objects from a collection of n items

PARAMETERS
nthe size of the collection
rthe number of items we are trying to permute
RETURN

the the number of ways of permute r objects from a collection of n items

DECLARATION
func permute(n, r)