Working scenario for numbers besides 3 and 5.
Accounted for numbers divisible by both 3 & 5