Those who haven’t even submitted simple digit DP problem have also submitted this.
Cheers to ABV-IIITM Gwalior for selecting participants for onsite for a prize money of 75k on the basis of this ranklist.
Please consider the rank list removing the above mentioned question copied from other platform since their solutions are easily available.
Above mentioned question is totally based on implementation and observation.If you perform the operations given in question there will not be more than L(i.e. length of string) different strings.Basic Idea is compute all possible string of given string by performing given operation until strings start repeating and store it somewhere, you can do this operation in O(L*L).Now take modulo of K(i.e. total operation) with total possible strings suppose it is N then your answer will be Nth string from last because you have to do reverse operation.You can check for code here-https://ideone.com/BUYw8x