AgroStar interview question

Implement logic of single problem where problem statement had not clarity