This problem statement given by One of the Reputed companies (Greater Bank Australia)
Below is the Problem Statement:
Coding Challenge
Processing Customer Transactions
Your team has been asked by the Finance department to create a program that can process customer transactions. Customer transactions
are are received by file and need to be processed and applied to customer loan accounts.
During an analysis meeting with stakeholders from the Finance department the following information is made available
Customer transactions are received as a File daily
once at 06:00 hours
once at 21:00 hours
File is received in csv format, example format
"Customer Account#", "Transaction Amount"
123456789, 100.00
987654321, -50.00
Each line in the file represents a customer transaction
Negative transaction amounts represent a debit against a customer account, and the customers account balance is increased
Positive transaction amounts represent a credit against a customer account, and the customers account balance is decreased.
Customer accounts numbers contain numerical characters only, however
some lines are encountered where the account number contains non numerical characters - these lines are considered
corrupt
corrupt lines should not be processed but skipped
Files are received in a directory located at $TRANSACTION_PROCESSING/pending, where