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.
Copypasting detected:
This is a duplicate of https://www.codewars.com/kata/pyramid-slide-down
In general, copy an coding problem from another entry-level coding site without attribution is a bad idea, because people have already taken all these low-hanging fruits, and they're often not very original. Not to mention that your solution (aka the reference solution) is wrong.