Polaris FT interview question

write code for load balancing in java