Company: Tech Mahindra_22may
Difficulty: medium
Marketplace Bug Fixing Problem Description You are supposed to find the bug in the code. Your code will be evaluated on the basis of Bugs and system test cases being passed. NOTE: Here, we use JAVA 8 and GRADLE VERSION 4+. You are given a market place problem where you can purchase and sell items. We will pass the money you have initially in your wallet. You need to find the money after purchasing and selling the products. Your task is to understand the flow, debug it and fix the bug. Examples Example 1: Input: initialMoney = 200F Output: 335F Explanation: This is calculated based on the prices of the products purchased and sold by the Market.handleMarket function. Constraints Don't change the number of parameters in the function declaration. Don't change the number of products added, sold and their prices. The following Java files are provided: Inventory.java package com.accolite.assignment.supermarket; import java.util.HashMap; import java.util.Map; public class Inventory { private M