Tip 1 : Practice. question with time shedule manner.
Tip 2 : Understand the basic concept of the problem
Tip 1 : Make your resume crisp and clean
Tip 2 : Mention the skill for which you have applied for the role.
It was mix round of mcq and coding question.



Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.
2. Open brackets must be closed in the correct order.
()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Declare a character stack S.
Now traverse the expression string exp.
If the current character is a starting bracket (‘(‘ or ‘{‘ or ‘[‘) then push it to stack.
If the current character is a closing bracket (‘)’ or ‘}’ or ‘]’) then pop from stack and if the popped character is the matching starting bracket then fine else brackets are not balanced.
After complete traversal, if there is some starting bracket left in stack then “not balanced”
It was a Coding round. It was started early morning at 9 am.



Make a hash_map which will map the character to there respective frequencies.
Traverse the given string using a pointer.
Increase the count of current character in the hash_map.
Now traverse the string again and check whether the current character has frequency=1.
If the frequency>1 continue the traversal.
Else break the loop and print the current character as the answer.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
How do you remove whitespace from the start of a string?