removeFruits function and unit test