HackerRank SDE Intern Interview Experience | Bangalore | Chakra AI Interviewer
- Location
- Bangalore
- Posted
- 16 Oct 2026
Summary
I completed an SDE Intern interview at Chakra AI in Bangalore, which consisted of a password strength checker problem followed by follow‑up questions, and the process went smoothly.
How it went
Interview Experience: Software Development Engineer (SDE) Intern
Location: Bangalore (Onsite)
Interviewer: Chakra AI Interviewer
Overall Experience: The interview went very smoothly. The AI interviewer was clear with instructions, and the overall flow felt structured and interactive.
Interview Structure
The interview consisted of 1 core DSA problem followed by a series of logical follow‑up questions and edge‑case discussions based on the written code.
The DSA Problem: Password Strength Checker
Input:
List<String> passwords — A list of password strings to evaluate.
List<String> common_words — A list of common or dictionary words that shouldn't appear in strong passwords.
Output:
List<String> — A list containing "weak" or "strong" corresponding to each password in the input list.
Rules for a Weak Password: A password is classified as weak if it satisfies any of the following conditions:
- Uniform Character Type: It consists entirely of numbers, entirely of lowercase letters (a‑z), or entirely of uppercase letters (A‑Z).
- Blacklisted Words: It contains any word from common_words as a substring.
- Length Constraint: Its length is less than 6 (len < 6).
Otherwise, the password is considered strong.
Approach & Solution Strategy
- Iteration & Validation: For each password in the passwords list, run through validation checks:
- Length check: If password.length() < 6, mark as "weak".
- Character type check: Track flags for containing digits, lowercase letters, and uppercase letters to see if it belongs to only a single category.
- Common words check: Check if any word from the common_words collection is present within the password string.
- Result Compilation: Append "weak" or "strong" to the result list based on the evaluation flags.
Follow‑Up Questions
-
Preprocessing for Single String Check:
- Question: What if instead of a list of passwords, you are given a single continuous string password, and you need to check it against a large dictionary of common words? What preprocessing would you perform?
- Discussion: Discussed using a Trie data structure for efficient multi‑pattern string matching instead of checking substrings linearly or we can use hashing too.
-
Code Modification & Verification: The interviewer made minor tweaks directly to the logic and asked to trace whether the code would still produce correct outputs or if edge cases would break it.
-
Edge Case Analysis: Tested scenarios with empty strings, passwords containing special characters alongside uniform letters, and overlapping common words.
Questions asked (2)
- 01
Password Strength Checker
Data Structures & Algorithms
Given a list of password strings and a list of common words, output a list indicating for each password whether it is "weak" or "strong".
Input
List<String> passwords— list of password strings to evaluate.List<String> common_words— list of common or dictionary words that should not appear in strong passwords.
Output
List<String>— list containing "weak" or "strong" for each password.
Weak Password Conditions
- Uniform Character Type: password consists entirely of numbers, entirely of lowercase letters, or entirely of uppercase letters.
- Blacklisted Words: password contains any word from
common_wordsas a substring. - Length Constraint: password length is less than 6.
If none of the above conditions apply, the password is considered strong.
- 02
Preprocessing for Single String Check
Data Structures & Algorithms
If instead of a list of passwords you are given a single continuous string password and need to check it against a large dictionary of common words, what preprocessing would you perform to enable efficient checking?