MSCI Campus Placement 2026 | Authentication System | Complete Solutions & Tips | July 30th Assessment | Horizontal Pod Autoscaler

Question · Posted Apr 2026

Question 1: Authentication System Problem Statement: In an authentication system, in the ith second, a new user registers with the password passwords[i]. The password is rejected if k registered users already have the same password. Given an array of n strings representing passwords and an integer k, report whether each password was accepted or rejected by the system. Example With passwords = ["password!", "password!", "password!"] and k=2: The first two users with "password!" are accepted, but the third user is ...

The full answer & interview discussion are available to premium members.

Log in Create a free account