LLD - Design — Hotel Booking System
Given this pseudocode for refund calculation:
What will be the refund if cancellation_time is 3 hours and allowed_time is 5 hours with amount 100?
if cancellation_time <= allowed_time:
refund = amount * 0.8
else:
refund = 0
What will be the refund if cancellation_time is 3 hours and allowed_time is 5 hours with amount 100?
