Skip to main content
All Questions

Implement validation logic in an existing service that updates a user's security PIN.

Unlock detailed company stats for this questionUpgrade

The round runs on HackerRank inside a pre-existing code repository, with an AI assistant offering Ask, Plan and Edit modes. The initial task is understanding the existing codebase and implementing the required validations.

Follow-ups: extend the validation to prevent users from reusing their last three previously used PINs, then add unit tests covering the new validation logic. There were no existing tests for this service, so test coverage had to be introduced from scratch.

Expect follow-ups like

  • Extend the validation to prevent users from reusing their last three previously used PINs.
  • Add appropriate unit tests covering the new validation logic, in a service that had no existing tests.

Format · AI-enabled coding round on HackerRank in a pre-existing repository.

Community answers

No answers contributed by the community yet.

Related courses

Course

Forward Deployed Engineering Interviews

Land your next role in forward deployed engineering (FDE) at top companies like Google, Anthropic, OpenAI, and startups. Learn from mock interviews, frameworks, and advice from senior candidates. Perfect your system design, coding, and behavioral interviews.

Course

Behavioral Interviews: A Practical Guide for Engineers

Get offers at the level you deserve. Prep for senior+ behavioral interviews at FAANG and Tier-1 companies. Made with staff and principal engineers from Meta, Netflix, Google, and more. Avoid downleveling, elevate past projects, and stop sounding like a robot.