C++ || 100% FAST || SIMULATION
```\nclass Solution {\npublic:\n    int numberOfRounds(string loginTime, string logoutTime) {\n         string liHr = loginTime.substr(0,2);\n         string lg
```\nclass Solution {\npublic:\n    int numberOfRounds(string loginTime, string logoutTime) {\n         string liHr = loginTime.substr(0,2);\n         string lgHr = logoutTime.substr(0,2);\n        \n         string liMt = loginTime.substr(3,4);\n         string lgMt = logoutTime.substr(3,4);\n         \n         int total_logInTime = stoi(liHr) * 60 + stoi(liMt);\n         int total_logOutTime = 0;\n        \n          if(liHr > lgHr || (liHr==lgHr && liMt>lgMt)){\n                total_logOutTime = 24;\n          }\n        \n          total_logOutTime = (total_logOutTime + stoi(lgHr)) * 60 + stoi(lgMt);\n        \n          if(total_logInTime % 15 != 0){\n              total_logInTime += 15 - (total_logInTime % 15);\n          }\n        \n          int ans = 0;\n        \n          for(int i=total_logInTime ; i<=total_logOutTime; i+=15){\n              if(i+15 <= total_logOutTime)\n                ans++;   \n          }\n        \n          return ans;\n          \n    }\n};
['C', 'Simulation']