Source: https://baibhavcomputer.com/wp-content/uploads/2021/06/Array-solved-programs-part2-converted.pdf