Skip to content

Commit 2d81393

Browse files
feat: implement removeChars function
1 parent fa65add commit 2d81393

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package mate.academy
22

3+
private const val ONE = 1
4+
35
fun removeChars(str: String): String {
4-
// Implement this function
5-
return ""
6+
return str.substring(ONE, str.length - ONE)
67
}

0 commit comments

Comments
 (0)