Infor interview question

Refactoring some horribly written Kotlin code