kotlin-coding-challenges

Capitalize First

Instructions

Given list of strings implement a recursive function which will capitalize first letter of each string in the list.

Challenge Solution

Examples

capitalizeFirst(listOf("igor")) // listOf("Igor")

capitalizeFirst(listOf("igor", "wojda")) // listOf("Igor", "Wojda")