• + 0 comments

    In this code if(lvl==0 && c=='U') ++v; this will count the uphill steps but in this question they are asking for the down hill steps when level ==0 so instead of that if you can write if(lvl==0 && c=='U') for downhill steps