made isMultiples function to take a mode for and/or and solved solution 5