These solutions are my own work and were created for educational purposes on HackerRank. They may not be the most optimal solutions, but they passed HackerRank’s test cases.