Zaber Technologies Interview Question

Similar to leet code problems.