FDM Group Interview Question

Java object oriented problem and leetcode medium problem