Wrote an article describing the problem as well as the solution for Google Hash Code 2020. I was able to score 22.3 Million with this solution.
Article Link : Google Hash Code 2020 | Discussing my solution that scored 22.3 Million on the Leader Board (Extended Round)