Tip 1 : Solve a lot of questions(mostly medium level)
Tip 2 : Prepare for questions which can be asked on your projects
Tip 3 : Prepare for questions which can be asked o your current experience
Tip 1 : Know every technology/project you mention in resume
Tip 2 : Use a good format which is easy to read


The width of each bar is the same and is equal to 1.
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].
Output: 10
Explanation: Refer to the image for better comprehension:

You don't need to print anything. It has already been taken care of. Just implement the given function.
Firstly gave brute force solution, traverse the array and for each element, find the highest elevation on left and right of that element. Take smaller of that and find its difference with current height. This much water will be stored at that element. Similarly, calculate for all and sum it.
Then optimized this solution by pre-calculating the highest elevation on left and right and storing in left[] and right[] array. Then iterate through array and use pre-calculated values. Stored water = min(left[i], right[i])- A[i]. If the answer is less than 0, then use it as 0.



‘S’ = brutegroot
The most frequent characters are [o, r, t]. All of these characters appear 2 times each.
As among all the options, ‘o’ is lexicographically smallest. So the answer is ‘o’.
Hence output will be o.
First provided brute force solution of using 2 for loops. First loop iterates through array and for each element, inner loop again iterates array and find the frequency. Then it compares it with maximum frequency so far stored in another variable.
Then optimized the solution by using hash map. Iterate through array and increase count of each element. Then iterate through hash map and return key with max value.
Design Wending Machine.
Tip 1: Ask questions so that interviewer describes problem in detail
Tip 2: Write pseudocode
Tip 3: Perform error handling
SQL queries on an employee database.
Find second highest salary
Find employees who are working in more than 1 project
Tip 1 : Practice all SQL operations like Joins, subqueries etc
Managerial round.
A few questions on Operating system were asked. Then some basic questions regarding cloud(because I have a AWS certification which I mentioned in resume). Questions on current experience and why looking to change.
What is a program?
What is a process?
What is a thread?
How is scheduling performed?
What is Round Robin?
Tip 1 : Revise basic OS concepts

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?