Kivi Capital Interview Question

Based on the previous work