LBi Software interview question

Brain teasers and logic, followed by programming knowledge.