I was asked below questions in the screening round, I discussed all the assumptions and edge case with the interviewer before writing the code & proposed multiple solution for them. Also I asked interviewer if he would like me to implement the solution using iterative or recursive way.
I kept talking while writing the solutions and did dry run for 3-4 testcases(1 positive, 1 ngeative and 2 edge scenarios) for each problem.
array of characters as dictionary rather than the String as in the original question.I was able to finish all the three questions in 35 minutes(total interview duration was 45 minutes). I am surprised as the interviewer asked me 3 questions in 1 round, preparing now for the loop interview.