Unable to make it more optimized


Run time error

Hello @Gunit,

Please, read the constraints carefully:
1 <= N,M,K,S <= 100
Problem:
Size of your array.

Corrected Code:

Hope, this would help.
Give a like if you are satisfied.