the technical interview was robotic.
The interviewer already decided the approach to the problem and if anyone is not taking that approach then they are failed.
There can be many approaches to the same problem.
They ask me to implement LoadBalancer with 10 back-end server addresses.
If addresses more than 10 then throw an exception.
If duplicate server address then throws an exception.
My approach was to implement LoadBalancer using a strategy pattern that allows code to extend easily for the new type of load balancer, easily testable, follows SOLID principles, loosely coupled with back-end IP address list and organized.
But the interviewer wanted everything into one class. which was strange for me.