https://medium.com/@brokenprogrammerss/structuring-the-document-in-c-hackerrank-solution-a0d29567e0a6