Very simple C++ solution
Updated solution to preserve the original logic as much as possible,\n\n\nclass Solution {\npublic:\n    int numberOfRounds(string startTime, string finishTime)
Updated solution to preserve the original logic as much as possible,\n\n```\nclass Solution {\npublic:\n    int numberOfRounds(string startTime, string finishTime) {\n        int a = stoi(startTime.substr(0, 2));\n        int b = stoi(startTime.substr(3, 2));\n        int c = stoi(finishTime.substr(0, 2));\n        int d = stoi(finishTime.substr(3, 2));\n        \n        a = a*60+b;\n        c = c*60+d;\n\n        if(c < a)\n            c += 60*24;\n        \n        if(a%15 != 0)\n            a += (15-(a%15));\n        if(c%15 != 0)\n            c -= (c%15);\n        \n        int val = (c-a)/15;\n        return max(0, val);\n    }\n};\n\n```
[]