Where i am going wrong in this unique number 2?

hello @itismohiton
a)
image

here it should be < in place of <=

b)
while printing output print smaller number before larger number. and add space between them

Thank you sir. Doubt is resolved.