completed isDivisible challenge using optionals