https://practice.geeksforgeeks.org/problems/smallest-number5829/1