Cash Flow Portal interview question

Medium or easy leetcode questions