here i am going with the brute force method for solving it and not able to think of a method to reduce the time.
please help me with it.
every time i am able to solve the question but i am not able to solve to think of a time efficient way this has become a big issue please help me how one can improve in this field?