Source codes of different brain teasers