Feel free to create new pull request
- Use the provided "Template.cpp" file
- Implement the algorithm part in new function (main function is for i/o only)
- return the answers from the function (not using an variable to store the answers or print them directly)
- (Optional) If possible, please provide a explanation link (e.g. blog explained about that algorithm, geeksforgreeks etc.)