HackerRank C++ solution for the Time Conversion algorithm problem. This algorithm takes a string parameter representing a time in 12-hour AM/PM format and returns a string corresponding to the time conversion in 24-hour military time. Public member functions from the C++ string class that were used for this HackerRank solution's algorithm include substr() and erase().
All HackerRank solutions on GitHub (please leave a star): https://github.com/IsaacAsante/HackerRank
HackerRank Time Conversion problem: https://www.hackerrank.com/challenges/time-conversion/problem