জলহস্তী কারবার | Math Problem

Click here to read the complete problem statement.

Somebody plz give me some hints to solve it