Efficient Array Query Optimization with Precalculation in Kotlin | CodeSignal Learn