Fidelity Investments Interview Question

Java Spring Boot Theory, leetcode easy