Simple java solution
\n/**\n*   1. Convert the time into mins\n*   2. Adjust the time by 15 mins frame. For StartTime + next 15 Multiplier & For EndTime = last 15 multiplier\n*   3.
```\n/**\n*   1. Convert the time into mins\n*   2. Adjust the time by 15 mins frame. For StartTime + next 15 Multiplier & For EndTime = last 15 multiplier\n*   3. If endTime > startTime simply getDifference/15. But if startTime > endTime Ex. 8pm - 2am then (12am - 8pm) + (2am - 12am)\n*/\nclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) {\n        int startHour = Integer.parseInt(startTime.substring(0,2));\n        int startMins = Integer.parseInt(startTime.substring(3,5));\n        int endHour = Integer.parseInt(finishTime.substring(0,2));\n        int endMins = Integer.parseInt(finishTime.substring(3,5));\n        startMins = (startHour * 60 + startMins);\n        endMins = (endHour * 60 + endMins);\n        \n        if(startMins % 15 != 0){\n            int lastMultiplier = startMins / 15;\n            startMins = 15 *(lastMultiplier + 1);\n        }\n        if(endMins % 15 != 0){\n            int lastMultiplier = endMins / 15;\n            endMins = 15 * lastMultiplier;\n        }\n\n        int totalGap = 0;\n        if(startMins > endMins){\n            int tillMidnight = (24 * 60) - startMins;\n            totalGap =  tillMidnight + endMins;\n        }else{\n           totalGap = endMins - startMins;\n        }\n        return totalGap / 15;\n    }\n}\n```
['Java']