IBM interview question

One base python coding and other SQL coding.