Can anyone suggest a solution for this , crazy cubes asked in codenation exam in august

for(i=1 to 19) ans={1,2,3,3,4,5,5,6,6,6,7,8,8,9,9,10,10,10,10)


share link, we don’t know if this problem is from any live contest or not?

check out this link
https://leetcode.com/discuss/interview-question/797382/Codenation-Questions

The comment in answers is not correct