Company: Flipkart
Difficulty: hard
A bank wants to identify successful transactions that may be fraudulent. The bank stores account information, transaction details, merchant profiles, device activity history, and location risk data. Your task is to analyse the records and print transactions whose fraud risk level is HIGH or MEDIUM . The fraud risk must be calculated using account transaction behaviour, same-day transaction velocity, merchant risk, device usage, transaction location, and location risk score. Read input from STDIN and print output to STDOUT. Do not print arbitrary strings anywhere in the program, as these contribute to the standard output and test cases will fail. Data Structures Accounts Table Field Description accountId Unique identifier of the account accountHolder Name of the account holder accountType Type of account such as SAVINGS or CURRENT homeLocation Registered home location of the account Transactions Table Field Description transactionId Unique identifier of the transaction accountId Account