Tip 1 : Your concepts should be crystal clear while preparing.
Tip 2 : Practice atleast the basic concept questions like array declaration, etc.
Tip 1 : Don't make your resume of more than 1 page for 0-5 YOE.
Tip 2 : Include min 2 projects on resume to prove you have the handson experience.
For a .NET developer, first they asked me some of the basic questions on .NET and C#. After that given 2-3 problems to solve and also asked to write some code for a windows service.



1. The array follows 0-based indexing, so you need to return 0-based indices.
2. If 'x' is not present in the array, return {-1 -1}.
3. If 'x' is only present once in the array, the first and last position of its occurrence will be the same.
Input: arr = [1, 2, 4, 4, 5], x = 4
Output: 2 3
Explanation: The given array’s 0-based indexing is as follows:
1 2 4 4 5
↓ ↓ ↓ ↓ ↓
0 1 2 3 4
So, the first occurrence of 4 is at index 2, and the last occurrence of 4 is at index 3.
It can be easily solved using the binary search.
What are your expectations?
Some personal questions like my background and talked regarding the projects I'll be working on.

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?