Kotlinlearncs.online LogoJava
Return to List

Homework: Start Oz

Imported By: learncs.online Staff
/ Version: 2021.4.0
/ Adapted from CodingBat

Given a string, return a string made of the first 2 chars (if present), however include the first char only if it is 'o' and include the second only if it is 'z', so "ozymandias" yields "oz".