Question -> "Given to dates, determine whether they were a month apart"
Answer -> I was taken back by how simple the question was. Since the dates given were date objects (I used javascript), you can subtract and convert from milliseconds to days. Slightly tricky part is determining how many days ahead from earliest date is considered a month. I said it should be number of days in earliest month.
Example ->
function(2/15/2018, 2/18/2018) returns true
function(3/4/2019, 4/5/2018) returns false