Weekly Challenge 371 Each week Mohammad S. Anwar sends out The Weekly Challenge , a chance for all of us to come up with solutions to two weekly tasks. My solutions are written in Python first, and then converted to Perl. Unless otherwise stated, Copilot (and other AI tools) have NOT been used to generate the solution. It's a great way for us all to practice some coding. Challenge , My solutions Task 1: Missing Letter Task You are given a sequence of 5 lowercase letters, with one letter replaced by ‘?’. Each letter maps to its position in the alphabet ( a = 1 , b = 2 , …, z = 26 ). The sequence follows a repeating pattern of step sizes between consecutive letters. The pattern is either a constant step (e.g., +2, +2, +2, +2 ) or a simple alternating pattern of two distinct steps (e.g., +2, +3, +2, +3 ). My solution Given this is the first task (which is usually more straight forward), my first solution was massively over engineered. After thinking about it, I came up with the solution that is better.…