IBM interview question

The coding test had 3 questions, one on pattern making, one on simple python functions, and one on medium level SQL aggregation