employer cover photo
employer logo
employer logo

Warner Bros. Discovery

Engaged Employer

Warner Bros. Discovery Interview Question

Given an integer array nums, a reducer function fn, and an initial value init, return the final result obtained by executing the fn function on each element of the array, sequentially, passing in the return value from the calculation on the preceding element.