Company: Accenture customer software engineer_28april
Difficulty: medium
Implement a system for financial analysts to filter and process currency exchange rate data. Create two classes: ExchangeRateData class that implements the IExchangeRateData interface with: Properties: currencyPair (String), rate (double), and date (LocalDate) Constructor: exchangeRateData(String currencyPair, double rate, LocalDate date) ExchangeRateAnalyser class that implements the IExchangeRateAnalyser interface with: Method: filterExchangeRates(List<ExchangeRateData> exchangeRates, String currencyPair, LocalDate startDate, LocalDate endDate) that returns the average exchange rate (as a Double ) for the specified currency pair within the given date range, rounded to two decimal places. The date range is inclusive, meaning both the start and end dates should be included in the analysis. Constraints The currency pair is a non-empty string in the format "XXX/YYY" . The exchange rate is a non-negative decimal . Dates is in a valid LocalDate format . The date range is valid with t