Rubrik | Phone | July 2022
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2022-07-20Added By Anonymous
Source: Link
Question:
Given a blackbox sendEmail() API, implement two APIs to book calendar and send notification to all the invites(email ids) at the same of when the event would occur based on it's time of event and isRecurring flag. If isRecurring == true, repeat the send notification everyday at the same time else only send it once at the scheduled time.
1addEvent(time, list of emails, message, isRecurring)
2Eg.
3["15:00:00", {"rty@dd.com", "wer@gg.com", "rwq@qq.com"}, "message1", true]
4["15:00:01", {"rty@dd.com", "wer@gg.com"}, "message2", false]
5
6sendEvent()