Google L4 Interview Experience & Timeline

google logo
google
SDE II
January 15, 202613 reads

Summary

I successfully completed a 60-minute phone interview for a Google L4 role, where I solved a multi-part coding question related to fraud detection, and subsequently advanced to virtual onsite rounds with Stripe.

Full Experience

I’d like to share a complete new coding question from a recent phone interview. I passed this round smoothly and advanced to the next three Stripe VO rounds.

The interview lasted 60 minutes. The introduction was very brief—just a couple of sentences were enough. The coding part took about 45 minutes and was structured into multiple parts/levels. Each new part was unlocked only after finishing the previous one. The interview focused on developing a fraud detection system incrementally through four distinct parts.

Interview Questions (4)

Q1
Verify Transaction Data Integrity
Data Structures & Algorithms

This part focused on building the foundation of fraud detection by validating basic data integrity.

The problem description was quite long, but the logic itself was straightforward. We read six fields from a CSV file representing a transaction and verify that all fields are non-empty.

Q2
High-Risk Rule Validation
Data Structures & Algorithms

In the second part, two core risk-control rules were added on top of the basic transaction validation:

  • Amount rule: the transaction amount must fall within a predefined valid business range.
  • Payment method rule: the payment method must not appear in a blocked method list.

If any of these conditions is violated, the transaction is marked as SUSPICIOUS.

Q3
User Behavior Matching
Data Structures & Algorithms

The third part required validating whether the transaction matches the user’s behavioral baseline.

We needed to ensure that at least 50% of the transaction’s behavioral features (such as commonly used countries, typical time ranges, and average transaction amount ranges) matched the user’s historical behavior.

The implementation involved feature extraction, normalization, and calculating a match ratio.

If the match ratio was below 50%, the transaction was considered a behavior mismatch and marked as SUSPICIOUS.

Q4
Smart Fraud Error Reporting
Data Structures & Algorithms

The final part implemented smart error reporting, replacing the generic “SUSPICIOUS” label with specific error codes.

The system outputs up to two error codes, ordered by priority.

If no errors are detected, the output is “OK”.

The final report must maintain proper column alignment to ensure readability.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!