UST Interview Question

Write a program for sorted number