small programs brainteasers