Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
haha! Nice one
Just Waiting to see this kind of clever solution.
All the best man
Here, n = 4 and m = 123.
As for the conditions 'm' is exclusive so 'm' is not included incase it is multiple of 'n'
123 isn't a multiple of 4 so our example will contain [ 4, 8, 12, 16, 20, ...., 120 ] as the final set of
all the multiples of 4 smaller than 123. Now just find the answer by adding all the elements i.e. 1860
It is because incase n>m it will execute the else block on the 7th line of the code.
You can add a extra check when n>m so that it will return "INVALID"