This reaction is known as bromoform reaction where the carbonyl carbon gets oxidised by sodium hydroxide to sodium salts of corresponding carboxylic acid having one carbon atom less than of carbonyl compound and the methyl group is converted to bromoform.