Introduction One of the letter sequences followed by a string of numbers is used as the reference number. If you…