Online Assessment
Total 12 questions.


Technical Interview
Given a input array of houses {0, 31, 65, 80, 121, 190, 203} and maxDistanceOfMailBox from house is 50.
come up with minimum number of mailboxes needs to be installed in the city.
Given a linked list.
Input : 1->2->3->4->5->null , n=2
Ouptut: 2->1->4->3->5->null
Input : 1->2->3->4->5->null , n=3
Output : 3->2->1-.5->4->null
Predict Output.
interface DemoA
{
public void demo();
}
class DemoB implements DemoA
{
public void demo()
{
//
}
}
class DemoC implements DemoA
{
public void demo()
{
//
}
}
class D
{
@Autowired
private DemoA demoA
public void demoMine()
{
demoA.demo();
}
}
Given User entity come up with URL and method types for following use cases.
1. findAllUsers
2. findUserByIdCome up with ShoppingCart modelling to support following use cases,
1. User should be able to add product in the cart
2. user should be able to remove product in the cart
3. user should be able to list products in the cartExplain Garbage Collection and its types.