Javascript simple 100% time 100% space
Approach:\nConvert everything to minute and run a loop from start time in minutes to finish time in minutes\nAdd 24*60 minutes if finish time is less than start
Approach:\nConvert everything to minute and run a loop from start time in minutes to finish time in minutes\nAdd 24*60 minutes if finish time is less than start time\nIncrement the answer(except for the first occurrance) by 1 whenever minute count is multiple of 15\n\n```\n/**\n * @param {string} startTime\n * @param {string} finishTime\n * @return {number}\n */\nvar numberOfRounds = function(startTime, finishTime) {\n\n    let startH,startM,finishH,finishM,start=-1,ans=0,addition=0,startInMin,finishInMin;\n    startH = parseInt(startTime.substring(0,2));\n    startM = parseInt(startTime.substring(3));\n    finishH = parseInt(finishTime.substring(0,2));\n    finishM = parseInt(finishTime.substring(3));\n    \n    if(finishH<startH || (finishH===startH && finishM<startM)){//Add 24*60 minutes if finish time is less than start time\n        addition = 24*60;\n    }\n    \n    startInMin = startH*60+startM;\n    finishInMin = finishH*60+finishM+addition;\n    \n    for(let i=startInMin;i<=finishInMin;i++){\n        if(i%15===0){\n            if(start===-1){\n                start=1;\n            }else{\n                ans++;\n            }\n        }\n    }\n    return ans;\n};\n```
['JavaScript']