Java Solution
\tclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) \n    {\n        String[] start = startTime.split(":");\n        String[]
\tclass Solution {\n    public int numberOfRounds(String startTime, String finishTime) \n    {\n        String[] start = startTime.split(":");\n        String[] end = finishTime.split(":");\n        \n        int startHour = Integer.parseInt(start[0]);\n        int startMinute = Integer.parseInt(start[1]);\n        int endHour = Integer.parseInt(end[0]);\n        int endMinute = Integer.parseInt(end[1]);\n        \n        int totalRounds = 0;\n        int hourDiff = 0;\n        if(startHour > endHour)\n        {\n            hourDiff = (24-startHour) + endHour;\n        }\n        else if(endHour > startHour)\n        {\n            hourDiff = endHour - startHour;\n        }\n        else if(startMinute > endMinute)\n        {\n            hourDiff = 24;\n        }\n        else\n        {\n            hourDiff = 0;\n        }\n        \n        if(hourDiff >= 1)\n        {\n            totalRounds += (hourDiff-1)*4;\n            if(startMinute == 0)\n            {\n                totalRounds += 4;\n            }\n            else if(startMinute <= 15)\n            {\n                totalRounds += 3;\n            }\n            else if(startMinute <= 30)\n            {\n                totalRounds += 2;\n            }\n            else if(startMinute <= 45)\n            {\n                totalRounds += 1;\n            }\n        \n            if(endMinute >= 45)\n            {\n                totalRounds += 3;\n            }\n            else if(endMinute >= 30)\n            {\n                totalRounds += 2;\n            }\n            else if(endMinute >= 15)\n            {\n                totalRounds += 1;\n            }\n        }\n        else\n        {\n            if(startMinute == 0 && endMinute >= 15)\n            {\n                totalRounds += 1;\n            }\n            \n            if(startMinute <= 15 && endMinute >= 30)\n            {\n                totalRounds += 1;\n            }\n            \n            if(startMinute <= 30 && endMinute >= 45)\n            {\n                totalRounds += 1;\n            }\n        }\n        \n        return totalRounds;\n    }\n\t}
[]