This is a hacker rank coding challenge I found online as I am getting ready to recruit for fintech. The problem is to calculating tax using a fifo approach. I tried doing it for Python and Java but could not complete it. Below are the pictures detailing the question:


