Forum Asset Management interview question

My projects and Python coding, LeetCode type