If number starts with 1 , return number consisting of 7
if ( N [ 0 ] == '1' ) : NEW_LINE INDENT for i in range ( size - 1 ) : NEW_LINE INDENT ans [ i ] = '7' NEW_LINE DEDENT ans [ size - 1 ] = ' ' ; NEW_LINE return ' ' . join ( ans ) NEW_LINE DEDENT