Kotlinlearncs.online LogoJava
Return to List

Homework: Start Oz

Imported By: Geoffrey Challen
/ Version: 2021.4.0

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".

Related Lessons

Stuck? You may find these lessons helpful: