VMware | MST-4 | Senior Lead Engineer | All Rounds(Team 1) | Jan end 2021

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2021-02-04Added By Anonymous
Source: Link

I was contacted by recruiter over linkedin for Senior Lead Software Engineer for Banglore location. I asked them for preparation time as I had holidays planned too. It took around 3-4 week. I went off for trekking and 2 days after I returned back home, i had first round ofinnterview schedule. I immediately got response after 3 hours from recruiter that I will be going for further rounds and all subsequent rounds were scheduled in next week. Out of 3 of us they had finalized after last round, I finally heard No from them saying they were quite impressed by my skills, accomplishments and achievements but due to tough competition, I won't be offered for the same role and at the same time, there is no similar position open so.


Below is my experience:

Round 1:

11) valid parentheses problem. Return number of braces required tio be inserted to complete valid parentheses in string 2Note: () is valid but )( is invalid 3Similar to : https://leetcode.com/problems/score-of-parentheses/ 4 5I/p 1: ()))(( 6O/p : 4 ---> because ()()()()() 7 8I/p 2: ((())) 9O/p : 0 10 112) subarray pair form given sum k. 12Similar to : https://leetcode.com/problems/two-sum/ 13I/p : 1, 2,5, 4, 3 K=7 14O/p : 2,5 15 16I/p 2 : 3, 4, 1 k=6 17Output : empty 18 19I/p 3: 3, 2, 4, 3, 1, 3 k=6 20O/p: 3,3 21 22If using map approach, for duplicate element output condition would be: 23if arr[I] == k-arr[I] 24 if m.get(arr[I]) > 1 25 then return arr[I] 26 27Else 28 Return M.get(arr[I])


Round 2:

Q1)

Similar to: https://leetcode.com/problems/boundary-of-binary-tree/

1 4 2 / \ 3 6 9 4 / \ \ 5 3 1 0 6 / \ \ / \ 7 4 2 4 8 3 8 / / 9 5 7 10 \ 11 1 12 \ 13 2 14 15Print all peripheral nodes of the tree in clockwise order 164,3,6,4,9,0,3,7,8,4,5 17 18Q2) 19 20Given default index like 0,1,2,3,4,5,..... and array, find cycle and print node cound among cycle 21 0,1,2,3,4,5,6,7 22int[]-> 2,4,4,5,0,8,9,6 -> 3 23int[]-> 2,4,4,5,5,6,2,6 -> 4


Round 3: (Low level design(LLD) and project specific)

•Latest java version in market
•Which java version you using and what features are you using
•What is lambda, how to write it
•What is streaming, types of streaming
•Given an integer array: write method to return count of even and odd integers in array using LAMBDA/ STREAMING.
•Difference between float and double
•Which service section you are working. in depth details of Mutual fund and fund investment.
•Backend logic of fund switch system implementation. are you doing in one transaction or two?
•For more transaction are you doing it parallrely ? or one by one
•Have You used multi threading ever ? for which context ?
1System Design For Vending Machine 2 3User Base - 4 Operator - Refill Vending Machine , Take Money 5 Administrator - Control Vending Maching Administartive Tasks - Like Product Management , Machine Configuration (Products Suppiorted , Mon- ey ), User Roles/Password 6 End User (Customer) 7 products: food prod >> chocs/cadbury/milk/ 8 machine connfig: add/delete/ update/ calculate 9 10Requirements - 11 Primary 12 Should support RBAC Validation 13 Support 14 - Administartor Function like Product Management , Money Control, RBAC 15 - End user - Allow User to View Product , Select Product and Buy 16 - Method To Accept Money From EU , Perform Validation and Return Back Amount (if applicable) 17 Secondry 18 How to extend this to support Multiple User Role , Product and Currency 19 NFR like Scale 20 How To Manage Vending Machine Configuration from Central Location (Configurtion Like - Products Supported, Current Availability, State) 21 22Usage Of SOLID Principles and Patterns


Round 4: (Architect round)

1.JPA - how to write Many to many annotations.
2.If i want mutiple student to select multiple subject, write E2E code for JPA with Many to many relation. (Wrote Entity, repository and all) I kept it simple with relation table than many to many relation annotation usage.
3.authenticsation and authorization
4.- what do you pass to validate the request (Maybe username/password/token was not valid for him)
5.- How do you assure that incoming request is valid request
6.
1@Component 2Interface I1 3 4class A implements I1 5 6Class B implements I2 7 8main() { 9 10@Autowired 11I1 i; 12 13//Will this compile, if not then what can make this work 14//Requirement is to inject only class A 15//:This can be achioeved through @Inject on class level 16 17}


Program :

1a = 10, 11, 22 2 3b = 6, 8, 12, 24 4 5/*Note: 6- Both arrays are sorted 7- First element should be from A 8- Last element should be from B 9- Combination should be in ascending order 10- Elements have to be subsequent from each array */ 11 12Output: 13 1410, 12 1510, 12, 22, 24 1610, 24 17 1811, 12 1911, 12, 22, 24 2011, 24 21 2222, 24
Comments