Click here to read the complete problem statement.
I need a editorial for this problem
@mahir_2005 pls give us a editorial