ProgrammingLanguages. Assignment5 challenge problem solving attempt