HackerRank solution for the C++ Strings coding challenge. This C++ tutorial for beginners looks at how to create strings in C++, store user input into string variables, check a string's length (number of characters it has), display string values in the console, and swap characters in a string. Note that a C++ string is a sequence of characters, so it is possible to access each character in a string via their index, using the array notation.
All HackerRank solutions on GitHub (please leave a star): https://github.com/IsaacAsante/HackerRank
HackerRank string challenge: https://www.hackerrank.com/challenges/c-tutorial-strings/problem