Sobes.tech
Intern — Middle

Replacing the fourth character of the string with the letter 'Ы'

livecode

Task condition

It is necessary to implement a function that takes a string (for example, "hello"), replaces its fourth character with the Russian letter 'Ы', and correctly handles cases where the string length is less than four characters, returning the original string unchanged.