C++ || EASY CODE || BRUTE FORCE
\n\n# Code\n\nclass Solution {\npublic:\n    int numberOfRounds(string s, string e) {\n        int a=stoi(s.substr(0,2)),x=stoi(s.substr(3,2));\n        int b=s
\n\n# Code\n```\nclass Solution {\npublic:\n    int numberOfRounds(string s, string e) {\n        int a=stoi(s.substr(0,2)),x=stoi(s.substr(3,2));\n        int b=stoi(e.substr(0,2)),y=stoi(e.substr(3,2));\n        if(b<a) {\n            b+=24;\n        }\n        else if(b==a && y<x) b+=24;\n        \n        int ss=0;\n        int c=0,r=0;\n        for(;c<48;)\n        {\n            int r2=r+15;\n            int c2=c;\n            if(r2==60) r2=0,c2++;\n      \n            if(c>a && c2<b) ss++;\n            else if(c==a && r>=x && c2<b) ss++;\n            else if(c>a && c2==b && r2<=y) ss++;\n            else if(c==a && c2==b && r>=x && r2<=y) ss++;\n\n            r+=15;\n            if(r==60) c++,r=0;\n        }\n        return ss;\n    }\n};\n```
['C++']