You are working as a developer for a chain of parking lots. Your task is to program the payment machine to calculate the amount of money owed based on the time a vehicle was parked. The time is passed to you as hours, minutes as in integer format.
Write a function calculateParkingLot that takes the hours and minutes as input and returns the parking fee to be paid based on the following criteria:
Note:
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.