A multi-part fraud detection problem. The prompt was posted only as images, which are not recorded; the parts below are reconstructed from a commenter's posted solution and its sample data, so confirm details with the interviewer. You are given a list of transactions, each containing a user ID, a device…