Solve: altPairs
Imported By: Geoffrey Challen
/ Version: 2021.5.0
Given a String
, return a String
made of the chars at indexes 0,1, 4,5, 8,9, and so on. So "kittens" yields
"kien".
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.String altPairs(String input) {
return "";
}