C++ easy solution
\nclass Solution {\npublic:\n    int numberOfRounds(string st, string ft) {\n        int t1 = stoi(st.substr(0, 2));\n        int t2 = stoi(ft.substr(0, 2));\n 
```\nclass Solution {\npublic:\n    int numberOfRounds(string st, string ft) {\n        int t1 = stoi(st.substr(0, 2));\n        int t2 = stoi(ft.substr(0, 2));\n        int m1 = stoi(st.substr(3, 2));\n        int m2 = stoi(ft.substr(3, 2));\n        int cnt = 0;\n        if(t1 == t2 && m1 == m2)\n            return cnt;\n        if(t1 == t2 && m1 < m2)\n        {\n            if(m1 > 0 && m1 < 15)\n                m1 = 15;\n            else if(m1 > 15 && m1 < 30)\n                m1 = 30;\n            else if(m1 > 30 && m1 < 45)\n                m1 = 45;\n            else if(m1 > 45 && m1 <= 59)\n                m1 = 0;\n            if(m2 > 0 && m2 < 15)\n                m2 = 0;\n            else if(m2 > 15 && m2 < 30)\n                m2 = 15;\n            else if(m2 > 30 && m2 < 45)\n                m2 = 30;\n            else if(m2 > 45 && m2 <= 59)\n                m2 = 45;\n            if(m1 < m2)\n            {\n                while(m1 < m2)\n                {\n                    cnt += 1;\n                    m1 += 15;\n                }\n            }\n            else\n                goto a;\n            return cnt;\n        }\n        a:\n        if(m1 > 0 && m1 < 15)\n            m1 = 15;\n        else if(m1 > 15 && m1 < 30)\n            m1 = 30;\n        else if(m1 > 30 && m1 < 45)\n            m1 = 45;\n        else if(m1 > 45 && m1 <= 59)\n        {\n            m1 = 0;\n            t1 = (t1 + 1) % 24;\n        }\n        if(m2 > 0 && m2 < 15)\n            m2 = 0;\n        else if(m2 > 15 && m2 < 30)\n            m2 = 15;\n        else if(m2 > 30 && m2 < 45)\n            m2 = 30;\n        else if(m2 > 45 && m2 <= 59)\n            m2 = 45;\n        while(1)\n        {\n            if(t1 == t2 && m1 == m2)\n                return cnt;\n            cnt += 1;\n            m1 = (m1 + 15) % 60;\n            if(m1 == 0)\n                t1 = (t1 + 1) % 24;\n        }\n        return cnt;\n    }\n};\n```
[]