Unique number 1

unable to form the code for this problem