I do not remember the exact complete question. But it went something like this.
you are given 2 strings. startTime : "mon 10:45 am" and endTime: "mon 11:00 am".
you need to output all the times between starttime and endtime in the interval of 5 minutes.
output: ["11045", "11050","11055", "111000"].
in output each string represents the day+time+minute. eg: 11045: 1+10+45 => monday represents 1. tuesday 2 etc.
Also, the output should be in 24hr format and input will be in 12hr format. you are required to do input validations as they can have invalid time formats.