An event is just a subset of the sample space. Build the event "outcome is divisible by k" and return it as a set.
k
Input
sample_space = {1, 2, 3, 4, 5, 6} k = 2
Output
{2, 4, 6}
solve(...)