diff --git a/subjects/unzipstring/README.md b/subjects/unzipstring/README.md index cf66635e..64dba5c9 100644 --- a/subjects/unzipstring/README.md +++ b/subjects/unzipstring/README.md @@ -2,12 +2,17 @@ ### Instructions -write a function named `Unzipstring` that takes a string in form of a number and an alphabet (like 3w or 2m3e) then returns a new string (3w ==> www and 2m3e ==> mmeee). - -- The number before the alphabet should be between 0 to 9. -- The one alphabet after each number should be between a to z or A to Z. -- It can't be two numbers or two alphabets in a row. -- If the Input string doesn't respect the format return `Invalid Input`. +Write a function called Unzipstring that takes a string that will be a kind of code, and your function will have to decrypt it and return a new string with the output. +It works as follows: +The string will be formed by a number followed by a letter, and the purpose is to print this letter the number of times that is requested by the number that precedes it. + + "3w" ==> www + "2m3e" ==> mmee + +- The number before the letter must be between 0 and 9. +- The letter after each number must be between a and z or A and Z. +- You cannot have two numbers or two letters in a row. +- If the input string does not respect the format, return Invalid Input. ### Expected Function