Sparse Number Problem