Source: https://baibhavcomputer.com/wp-content/uploads/2021/05/String-Solved-program-part2-for-website2021-converted.pdf