AssetSense Interview Question

Java concepts Two coding questions