Click here to read the complete problem statement.
I find this problem very interesting but cant solve. Please anyone help me personally