Pergunta de entrevista da empresa Front

Define a general JSON representation for open hours Imagine that you have a UI letting an administrator define open hours. What format should the API accept? Implement responseTime() _ Write a function (in a language of you choosing): responseTime(time1, time2, openHours) where: time1 and time2 are 2 UNIX timestamps. openHours is the data structure you previously defined. the returned value is the difference between time1 and time2, excluding time where the team was not available. For example, with the previous example, responseTime(<monday 8am>, <monday 10am>, oh) would be only 1 hour. Bonus: can you guess the format used in Front?