added Problem 25
added type signature for Problem 25