Newfold Digital : SDET Interview Questions

The interview consisted of three rigorous technical rounds, each lasting approximately 2–2.5 hours. Here's a detailed experience

Each round focused on evaluating problem-solving, coding, and automation testing (UI and API) expertise. Asked a total of four coding questions, alongside questions on Selenium, Java, and testing concepts.

1st coding question :

Move all negative numbers to beginning and positive maintaining order

(need to cover all the test cases with time and space complexity)

ex: Input: -12, 11, -13, -5, 6, -7, 5, -3, -6

Output: -12 -13 -5 -7 -3 -6 11 6 5

2nd coding questions:

Reverse a string preserving space position

(need to cover all the test cases with time and space complexity)

ex: Input: I Am Not String

Output: g ni rtS toNmAI

3rd question:

Given an array of strings strs, group the anagrams together.

(need to cover all the test cases with time and space complexity)

Input: strs = ["eat","tea","tan","ate","nat","bat"]

Output: [["bat"],["nat","tan"],["ate","eat","tea"]]

4th questions:

Print all subarrays with 0 sum

Input: arr = [6, 3, -1, -3, 4, -2, 2, 4, 6, -12, -7]

Output:

Subarray found from Index 2 to 4

Subarray found from Index 2 to 6

Subarray found from Index 5 to 6

Subarray found from Index 6 to 9

Subarray found from Index 0 to 10