Need help with 1593B
Not sure what I am missing in logic. Help !
Link to my solution: https://codeforces.com/contest/1593/submission/134690219