VOIZWORKS Hiring Challenge | Online Assessment Question | On-Campus (2025)
Question · Posted Jun 2026
Problem: Check if One String Swap Can Make Strings Equal Given two strings s1 and s2 of equal length, determine whether you can make them equal by performing at most one swap of two characters in one of the strings. Example Input s1 = "bank" s2 = "kanb" Output true Explanation Swap 'b' and 'k' in "bank": bank → kanb The strings become equal after one swap.
The full answer & interview discussion are available to premium members.
Log in Create a free account