Very easy method C++
class Solution {\npublic:\n   \n   int numberOfRounds(string s, string f) {\n        int h1,h2,m1,m2;\n        h1=(s[0]-\'0\')10+(s[1]-\'0\');\n        m1=(s[3]
class Solution {\npublic:\n   \n   int numberOfRounds(string s, string f) {\n        int h1,h2,m1,m2;\n        h1=(s[0]-\'0\')*10+(s[1]-\'0\');\n        m1=(s[3]-\'0\')*10+(s[4]-\'0\');\n        h2=(f[0]-\'0\')*10+(f[1]-\'0\');\n        m2=(f[3]-\'0\')*10+(f[4]-\'0\');\n        int cnt=0,cnt1=0,hh=0;\n        if(h2>=h1){\n            hh=abs(h1-h2);\n        }\n        else{\n            hh=h2+24-h1;\n        }\n        if(m1%15==0)\n            cnt=m1/15;\n        else\n            cnt=(m1/15)+1;\n        cnt1=m2/15;\n        int ans=hh*4+(cnt1-cnt);\n        if(ans<0)\n            ans+=96;\n        return ans;\n    }\n};
[]