Leetcode 1393. Capital Gain/Loss | Hello Interview