TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeLibrarySecurity Mock · Caesar Groups

    Security Mock · Caesar Groups

    Security Mock · Caesar Groups

    Overview

    A coding round with Marcus in a shared editor: group strings that encode to the same value under a Caesar cipher, run the public tests, then explain why a teammate shouldn't "encrypt" secrets this way. Written report with a hire band after.

    Your Instructions

    Your goal: solve one string-grouping question cleanly, test it with the awkward inputs, and show you know why the cipher behind it protects nothing.

    How this works (about 30 minutes)

    • You're interviewing for a security engineering role at Pinterest. Marcus puts the question in the shared editor; pick Python, Java or C++ at the top.
    • Think out loud. Ask about the input before you code.
    • Say your approach and its time and memory before you write it.
    • Run the public tests from the editor. Tell Marcus when you want him to look at your code.
    • After the tests he asks what input would break it, then a security follow-up built from your code.
    • No scores during the call. Your report comes after.

    What scores well

    • Restating the question and working a small example by hand, including one that wraps past z
    • A key that every shift of a word lands on, chosen on purpose and said out loud
    • Testing the odd inputs before Marcus asks: wrap-around, single letters, duplicates, an empty list
    • A clear security answer: why a letter shift is not encryption, and what to use instead

    Tips

    • Take Security Coach · Cryptography first.
    • Ask what counts as "the same value" before you choose a key.

    More in Security Engineer Interview Prep: AI Coach Edition

    • Security Mock · Denial of Service
    • Security Coach · Web App Security
    • Security Mock · Secure Code Review
    • Security Coach · Identity and Access
    • Security Mock · Attack the OAuth Workflow
    • Security Coach · Cryptography
    • Security Coach · Threat Modeling
    • Security Mock · Design a Cyber Attack
    • Security Coach · Detection
    • Security Mock · Brute-Force Detector
    • Security Coach · Cloud and Containers
    • Security Mock · Secure a Kubernetes Platform
    View the full course (40 sessions) →