simple way to find out time using c++
Code\n\nclass Solution {\npublic:\n    int findDelayedArrivalTime(int arrival, int delayed) {\n        \n        int time =0;\n   if(arrival + delayed >=24)\n  
# Code\n```\nclass Solution {\npublic:\n    int findDelayedArrivalTime(int arrival, int delayed) {\n        \n        int time =0;\n   if(arrival + delayed >=24)\n       return ( arrival + delayed - 24);\n\n       else{\n           time = arrival + delayed;\n       }\n     \n        return time;\n  \n    }\n};\n```
['C++']