Visa Inc. interview question

Multi-Threading in java Puzzle Leetcode Medium - 2 questions